#38397E#38397E

#38397E is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.3% C 0.114 H 278.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#38397E
RGBrgb(56, 57, 126)
HSLhsl(239, 38%, 36%)
HSVhsv(239, 56%, 49%)
CMYKcmyk(55.6%, 54.8%, 0%, 50.6%)
CIE-LABlab(27.50, 20.67, -39.43)
CIE-LCHlch(27.50, 44.52, 297.67°)
OKLaboklab(38.32% 0.0177 -0.1127)
OKLCHoklch(38.32% 0.114 278.9)
XYZxyz(6.8587, 5.2729, 20.3910)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38397E #7E7D38
analogous
#385C7E #38397E #5A387E
triadic
#38397E #7E3839 #397E38
tetradic
#38397E #7E385C #7E7D38 #387E5A
square
#38397E #7E385C #7E7D38 #387E5A
split-complementary
#38397E #7E5A38 #5C7E38
monochromatic
#121329 #252654 #38397E #4B4CA8 #7172C0

Accessibility & contrast

On white

10.22
#38397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#38397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38397E
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38397E#FFFFFF#000000##FFFFFF
##38397E1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134480
Deuteranopia (green-blind)
#073E7D
Tritanopia (blue-blind)
#184955
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #38397e;
/* rgb */ color: rgb(56, 57, 126);
/* oklch */ color: oklch(38.3% 0.114 278.9);
Tailwind
colors: {
  custom: {
    50: '#756fa4',
    500: '#38397e',
    950: '#000000',
  },
}
SCSS
$custom: #38397e;
$custom-light: #756fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#38397e",
  "rgb": {
    "r": 56,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 239.143,
    "s": 38.462,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38318,
    "c": 0.11406,
    "h": 278.9
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#38397E
secondary
#A9A869
accent
#CD59CE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #38397E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#38397E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva