#42387C#42387C

#42387C is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.8% C 0.111 H 286.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#42387C
RGBrgb(66, 56, 124)
HSLhsl(249, 38%, 35%)
HSVhsv(249, 55%, 49%)
CMYKcmyk(46.8%, 54.8%, 0%, 51.4%)
CIE-LABlab(27.96, 23.05, -37.39)
CIE-LCHlch(27.96, 43.92, 301.65°)
OKLaboklab(38.83% 0.0321 -0.1064)
OKLCHoklch(38.83% 0.111 286.8)
XYZxyz(7.2980, 5.4415, 19.7307)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42387C #727C38
analogous
#38507C #42387C #64387C
triadic
#42387C #7C4238 #387C42
tetradic
#42387C #7C3850 #727C38 #387C64
square
#42387C #7C3850 #727C38 #387C64
split-complementary
#42387C #7C6438 #507C38
monochromatic
#151228 #2C2552 #42387C #584BA6 #7C70BE

Accessibility & contrast

On white

10.06
#42387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#42387C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42387C
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42387C#FFFFFF#000000##FFFFFF
##42387C1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17447E
Deuteranopia (green-blind)
#16407A
Tritanopia (blue-blind)
#304754
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #42387c;
/* rgb */ color: rgb(66, 56, 124);
/* oklch */ color: oklch(38.8% 0.111 286.8);
Tailwind
colors: {
  custom: {
    50: '#7a6fa2',
    500: '#42387c',
    950: '#000000',
  },
}
SCSS
$custom: #42387c;
$custom-light: #7a6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#42387c",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 248.824,
    "s": 37.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38832,
    "c": 0.11111,
    "h": 286.8
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#42387C
secondary
#9EA768
accent
#CE5ABD
background
#F7F6FA
surface
#EEECF3
border
#C9C7CD
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #42387C

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

Preview Lab → · Contrast checker → · Palette generator →

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