Skip to content

#38309c

a dark, vivid blue · cool · closest name: Dark Slate Blue

RGB
56, 48, 156
HSL
244°, 53%, 40%
CMYK
64, 69, 0, 39
Luminance
0.0535

At a glance

Every number on this page in one read: what #38309c is made of, how bright it looks, and which way it leans.

Hex
#38309c
Hue
244°
blue
Saturation
53%
vivid
Lightness
40%
dark
Brightness
61%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0535
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.14:1
Closest name
Dark Slate Blue
ΔE2000 5.6
Where it sits
Hue244° of 360°
Saturation53%
Lightness40%
Temperature
Warm ← → Cool81% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#38309c
RGBrgb(56, 48, 156)
HSLhsl(244, 53%, 40%)
CMYKcmyk(64%, 69%, 0%, 39%)
LABlab(27.7 36.8 -57.6)
LCHlch(27.7 68.3 302.5)
OKLCHoklch(0.393 0.168 278.6)
Decimal3682460
Display P3color(display-p3 0.220 0.188 0.612)

Copy-ready code

/* CSS */
color: #38309c;
background-color: #38309c;
/* Tailwind (arbitrary) */
class="text-[#38309c] bg-[#38309c]"
/* SCSS */
$brand: #38309c;
/* SwiftUI */
Color(red: 0.220, green: 0.188, blue: 0.612)
/* Android */
Color.parseColor("#38309c")
/* Flutter */
Color(0xFF38309C)
/* Python / OpenCV (BGR) */
(156, 48, 56)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #38309c · 10.14:1
Use #ffffffAAA at every size.
Aa
White text · 10.14:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.07:1
AA fail · AA large fail · AAA fail
Reading the other direction: #38309c as text scores 10.14:1 on white and 2.07:1 on black.

Accessibility — WCAG contrast

Aa
#38309c on white: 10.14:1
AA ✓ pass · AA-large · AAA
Aa
#38309c on black: 2.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00469F
deuteranopia · #003D9A
tritanopia · #004D62

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #38309c is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F4FB
#EAE9F6
#D1CEED
#AEA9E5
#857ED7
#5C53CA
#433ABB
#38309c
#2D267D
#241F5B
#161439
Base = 700Lightest = 50 · #F5F4FBDarkest = 950 · #161439
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EAE9F6;
  --brand-200: #D1CEED;
  --brand-300: #AEA9E5;
  --brand-400: #857ED7;
  --brand-500: #5C53CA;
  --brand-600: #433ABB;
  --brand-700: #38309c;
  --brand-800: #2D267D;
  --brand-900: #241F5B;
  --brand-950: #161439;
  --brand: #38309c;
  --brand-ink: #ffffff;
}

Colors that work with #38309c

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F5F4FA
Tinted page background
Border#C4C1EC
Hairlines and dividers
Muted text#504B9B
Captions on the surface
Accent#A08C2C
Second voice, not a rival
Dark variant#231E61
Hover, pressed, headers
Light variant#ECECF9
Selected rows, tints
Dark surface#151424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #38309c

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#949C30
Analogous left#305E9C
Analogous right#6E309C
Split-complement 1#9C6E30
Split-complement 2#5E9C30
Triadic 1#9C3830
Triadic 2#309C38
Tetradic#9C305E

RGB percentages

Red22.0%
Green18.8%
Blue61.2%

CMYK percentages

Cyan64.1%
Magenta69.2%
Yellow0.0%
Key (black)38.8%

Color previews

#38309c text on a black background

contrast 2.07:1

Card sample

#38309c text on a white background

contrast 10.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #38309c;
Background color
Panel with #38309c background
background-color: #38309c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #38309c;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(56, 48, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(56, 48, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #38309c;
background: linear-gradient(135deg, #38309c, #80309C);

Monochromatic scale

Palettes built from #38309c

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#38309c in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#38309c, answered

What color is #38309c?

#38309c is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 5.6). It sits at 244° on the hue wheel with 53% saturation and 40% lightness, which reads as cool.

What is the RGB value of #38309c?

rgb(56, 48, 156) — 56 red, 48 green and 156 blue out of 255, or 22% / 18.8% / 61.2% by channel.

Is #38309c a light or a dark color?

It is a dark color. Relative luminance is 0.0535 and perceived brightness is 28%, so white text on it reaches 10.14:1.

Should I use black or white text on #38309c?

White. It scores 10.14:1 against #38309c, versus 2.07:1 for black — AAA at any size.

What is the complementary color of #38309c?

#949C30 sits directly opposite on the wheel. Softer options are the split-complements #9C6E30 and #5E9C30, which give the same contrast with far less vibration.

What colors go well with #38309c?

For interface work: #F5F4FA as the surface, #C4C1EC for borders, #504B9B for secondary text, #A08C2C as an accent and #231E61 for hover and pressed states. For a palette, the analogous pair #305E9C and #6E309C stays calm, while #949C30 is the loudest partner.

What is #38309c in CMYK for printing?

cmyk(64%, 69%, 0%, 39%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #38309c warm or cool?

Cool — it scores 81 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #60309C; nudged cooler, #2E4E9E.

Work with #38309c in the Color Lab