#42487D#42487D

#42487D is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.2% C 0.088 H 277.0°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#42487D
RGBrgb(66, 72, 125)
HSLhsl(234, 31%, 37%)
HSVhsv(234, 47%, 49%)
CMYKcmyk(47.2%, 42.4%, 0%, 51%)
CIE-LABlab(32.42, 12.80, -30.90)
CIE-LCHlch(32.42, 33.44, 292.51°)
OKLaboklab(42.23% 0.0108 -0.0873)
OKLCHoklch(42.23% 0.088 277)
XYZxyz(8.2647, 7.2732, 20.3665)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42487D #7D7742
analogous
#42667D #42487D #59427D
triadic
#42487D #7D4248 #487D42
tetradic
#42487D #7D4266 #7D7742 #427D59
square
#42487D #7D4266 #7D7742 #427D59
split-complementary
#42487D #7D5942 #667D42
monochromatic
#181A2D #2D3155 #42487D #575FA5 #7E85BB

Accessibility & contrast

On white

8.55
#42487D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#42487D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42487D
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42487D#FFFFFF#000000##FFFFFF
##42487D1.008.552.458.55
#FFFFFF8.551.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344F7F
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#2D535C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #42487d;
/* rgb */ color: rgb(66, 72, 125);
/* oklch */ color: oklch(42.2% 0.088 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a7aa3',
    500: '#42487d',
    950: '#000000',
  },
}
SCSS
$custom: #42487d;
$custom-light: #7a7aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42487d",
  "rgb": {
    "r": 66,
    "g": 72,
    "b": 125
  },
  "hsl": {
    "h": 233.898,
    "s": 30.89,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42225,
    "c": 0.08793,
    "h": 277
  },
  "luminance": 0.07274
}

Semantic roles & 50–950 ramp

primary
#42487D
secondary
#A6A175
accent
#BD61C7
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #42487D

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

Preview Lab → · Contrast checker → · Palette generator →

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