#42387A#42387A

#42387A is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.7% C 0.108 H 287.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#42387A
RGBrgb(66, 56, 122)
HSLhsl(249, 37%, 35%)
HSVhsv(249, 54%, 48%)
CMYKcmyk(45.9%, 54.1%, 0%, 52.2%)
CIE-LABlab(27.82, 22.40, -36.35)
CIE-LCHlch(27.82, 42.70, 301.65°)
OKLaboklab(38.69% 0.0319 -0.1033)
OKLCHoklch(38.69% 0.108 287.2)
XYZxyz(7.1728, 5.3915, 19.0713)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42387A #707A38
analogous
#384F7A #42387A #63387A
triadic
#42387A #7A4238 #387A42
tetradic
#42387A #7A384F #707A38 #387A63
square
#42387A #7A384F #707A38 #387A63
split-complementary
#42387A #7A6338 #4F7A38
monochromatic
#151126 #2B2550 #42387A #594BA4 #7B6FBD

Accessibility & contrast

On white

10.10
#42387A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#42387A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42387A
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42387A#FFFFFF#000000##FFFFFF
##42387A1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A437C
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#314653
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #42387a;
/* rgb */ color: rgb(66, 56, 122);
/* oklch */ color: oklch(38.7% 0.108 287.2);
Tailwind
colors: {
  custom: {
    50: '#7a6fa1',
    500: '#42387a',
    950: '#000000',
  },
}
SCSS
$custom: #42387a;
$custom-light: #7a6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#42387a",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 122
  },
  "hsl": {
    "h": 249.091,
    "s": 37.079,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38687,
    "c": 0.10814,
    "h": 287.2
  },
  "luminance": 0.05392
}

Semantic roles & 50–950 ramp

primary
#42387A
secondary
#9DA668
accent
#CD5BBC
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#09070F
muted
#7B7A7E

Preview Lab

Preview with #42387A

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

Preview Lab → · Contrast checker → · Palette generator →

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