#42387E#42387E

#42387E is a dark, moderate blue. Relative luminance 0.055; OKLCH L 39.0% C 0.114 H 286.4°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#42387E
RGBrgb(66, 56, 126)
HSLhsl(249, 38%, 36%)
HSVhsv(249, 56%, 49%)
CMYKcmyk(47.6%, 55.6%, 0%, 50.6%)
CIE-LABlab(28.09, 23.69, -38.42)
CIE-LCHlch(28.09, 45.14, 301.65°)
OKLaboklab(38.98% 0.0322 -0.1094)
OKLCHoklch(38.98% 0.114 286.4)
XYZxyz(7.4257, 5.4926, 20.4035)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42387E #747E38
analogous
#38517E #42387E #65387E
triadic
#42387E #7E4238 #387E42
tetradic
#42387E #7E3851 #747E38 #387E65
square
#42387E #7E3851 #747E38 #387E65
split-complementary
#42387E #7E6538 #517E38
monochromatic
#161229 #2C2554 #42387E #584BA8 #7C71C0

Accessibility & contrast

On white

10.01
#42387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#42387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42387E
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42387E#FFFFFF#000000##FFFFFF
##42387E1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144480
Deuteranopia (green-blind)
#13407C
Tritanopia (blue-blind)
#2F4755
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #42387e;
/* rgb */ color: rgb(66, 56, 126);
/* oklch */ color: oklch(39.0% 0.114 286.4);
Tailwind
colors: {
  custom: {
    50: '#7b6fa4',
    500: '#42387e',
    950: '#000000',
  },
}
SCSS
$custom: #42387e;
$custom-light: #7b6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42387e",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 248.571,
    "s": 38.462,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38978,
    "c": 0.11406,
    "h": 286.4
  },
  "luminance": 0.05493
}

Semantic roles & 50–950 ramp

primary
#42387E
secondary
#A0A969
accent
#CE59BE
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #42387E

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

Preview Lab → · Contrast checker → · Palette generator →

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