#42487B#42487B

#42487B is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.1% C 0.085 H 277.0°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#42487B
RGBrgb(66, 72, 123)
HSLhsl(234, 30%, 37%)
HSVhsv(234, 46%, 48%)
CMYKcmyk(46.3%, 41.5%, 0%, 51.8%)
CIE-LABlab(32.31, 12.15, -29.83)
CIE-LCHlch(32.31, 32.21, 292.16°)
OKLaboklab(42.1% 0.0104 -0.0841)
OKLCHoklch(42.1% 0.085 277)
XYZxyz(8.1382, 7.2226, 19.7003)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42487B #7B7542
analogous
#42657B #42487B #59427B
triadic
#42487B #7B4248 #487B42
tetradic
#42487B #7B4265 #7B7542 #427B59
square
#42487B #7B4265 #7B7542 #427B59
split-complementary
#42487B #7B5942 #657B42
monochromatic
#17192B #2D3153 #42487B #575FA3 #7E84BA

Accessibility & contrast

On white

8.59
#42487B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#42487B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42487B
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42487B#FFFFFF#000000##FFFFFF
##42487B1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7D
Deuteranopia (green-blind)
#314A7A
Tritanopia (blue-blind)
#2F525B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #42487b;
/* rgb */ color: rgb(66, 72, 123);
/* oklch */ color: oklch(42.1% 0.085 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a7aa1',
    500: '#42487b',
    950: '#000000',
  },
}
SCSS
$custom: #42487b;
$custom-light: #7a7aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#42487b",
  "rgb": {
    "r": 66,
    "g": 72,
    "b": 123
  },
  "hsl": {
    "h": 233.684,
    "s": 30.159,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42102,
    "c": 0.08479,
    "h": 277
  },
  "luminance": 0.07223
}

Semantic roles & 50–950 ramp

primary
#42487B
secondary
#A5A074
accent
#BC61C6
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#09090F
muted
#7B7B7E

Preview Lab

Preview with #42487B

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

Preview Lab → · Contrast checker → · Palette generator →

#42487B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva