#38399D#38399D

#38399D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.158 H 276.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#38399D
RGBrgb(56, 57, 157)
HSLhsl(239, 47%, 42%)
HSVhsv(239, 64%, 62%)
CMYKcmyk(64.3%, 63.7%, 0%, 38.4%)
CIE-LABlab(29.91, 31.49, -54.64)
CIE-LCHlch(29.91, 63.07, 299.95°)
OKLaboklab(40.87% 0.0176 -0.1574)
OKLCHoklch(40.87% 0.158 276.4)
XYZxyz(9.1778, 6.2006, 32.6049)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38399D #9D9C38
analogous
#386C9D #38399D #6A389D
triadic
#38399D #9D3839 #399D38
tetradic
#38399D #9D386C #9D9C38 #389D6A
square
#38399D #9D386C #9D9C38 #389D6A
split-complementary
#38399D #9D6A38 #6C9D38
monochromatic
#181843 #282970 #38399D #5152C1 #7E7FD1

Accessibility & contrast

On white

9.37
#38399D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#38399D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38399D
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38399D#FFFFFF#000000##FFFFFF
##38399D1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #38399d;
/* rgb */ color: rgb(56, 57, 157);
/* oklch */ color: oklch(40.9% 0.158 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b6fbb',
    500: '#38399d',
    950: '#000000',
  },
}
SCSS
$custom: #38399d;
$custom-light: #7b6fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#38399d",
  "rgb": {
    "r": 56,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 239.406,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40867,
    "c": 0.1584,
    "h": 276.4
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#38399D
secondary
#BABA76
accent
#D651D7
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #38399D

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

Preview Lab → · Contrast checker → · Palette generator →

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