#42387D#42387D

#42387D is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.9% C 0.113 H 286.6°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#42387D
RGBrgb(66, 56, 125)
HSLhsl(249, 38%, 35%)
HSVhsv(249, 55%, 49%)
CMYKcmyk(47.2%, 55.2%, 0%, 51%)
CIE-LABlab(28.03, 23.36, -37.91)
CIE-LCHlch(28.03, 44.53, 301.65°)
OKLaboklab(38.91% 0.0321 -0.1079)
OKLCHoklch(38.91% 0.113 286.6)
XYZxyz(7.3615, 5.4670, 20.0654)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42387D #737D38
analogous
#38507D #42387D #64387D
triadic
#42387D #7D4238 #387D42
tetradic
#42387D #7D3850 #737D38 #387D64
square
#42387D #7D3850 #737D38 #387D64
split-complementary
#42387D #7D6438 #507D38
monochromatic
#151228 #2C2553 #42387D #584BA7 #7C70BF

Accessibility & contrast

On white

10.03
#42387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42387D
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42387D#FFFFFF#000000##FFFFFF
##42387D1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447F
Deuteranopia (green-blind)
#15407B
Tritanopia (blue-blind)
#2F4755
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #42387d;
/* rgb */ color: rgb(66, 56, 125);
/* oklch */ color: oklch(38.9% 0.113 286.6);
Tailwind
colors: {
  custom: {
    50: '#7b6fa3',
    500: '#42387d',
    950: '#000000',
  },
}
SCSS
$custom: #42387d;
$custom-light: #7b6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42387d",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 248.696,
    "s": 38.122,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38905,
    "c": 0.11259,
    "h": 286.6
  },
  "luminance": 0.05467
}

Semantic roles & 50–950 ramp

primary
#42387D
secondary
#9FA869
accent
#CE5ABD
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #42387D

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

Preview Lab → · Contrast checker → · Palette generator →

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