#38399B#38399B

#38399B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.156 H 276.5°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#38399B
RGBrgb(56, 57, 155)
HSLhsl(239, 47%, 41%)
HSVhsv(239, 64%, 61%)
CMYKcmyk(63.9%, 63.2%, 0%, 39.2%)
CIE-LABlab(29.75, 30.79, -53.70)
CIE-LCHlch(29.75, 61.90, 299.83°)
OKLaboklab(40.69% 0.0177 -0.1546)
OKLCHoklch(40.69% 0.156 276.5)
XYZxyz(9.0085, 6.1328, 31.7130)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38399B #9B9A38
analogous
#386B9B #38399B #69389B
triadic
#38399B #9B3839 #399B38
tetradic
#38399B #9B386B #9B9A38 #389B69
square
#38399B #9B386B #9B9A38 #389B69
split-complementary
#38399B #9B6938 #6B9B38
monochromatic
#181841 #28286E #38399B #5051C0 #7D7ED0

Accessibility & contrast

On white

9.43
#38399B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#38399B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38399B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38399B#FFFFFF#000000##FFFFFF
##38399B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #38399b;
/* rgb */ color: rgb(56, 57, 155);
/* oklch */ color: oklch(40.7% 0.156 276.5);
Tailwind
colors: {
  custom: {
    50: '#7a6fb9',
    500: '#38399b',
    950: '#000000',
  },
}
SCSS
$custom: #38399b;
$custom-light: #7a6fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#38399b",
  "rgb": {
    "r": 56,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 239.394,
    "s": 46.919,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.15566,
    "h": 276.5
  },
  "luminance": 0.06134
}

Semantic roles & 50–950 ramp

primary
#38399B
secondary
#B9B975
accent
#D551D7
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #38399B

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

Preview Lab → · Contrast checker → · Palette generator →

#38399B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva