#42487F#42487F

#42487F is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.4% C 0.091 H 277.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#42487F
RGBrgb(66, 72, 127)
HSLhsl(234, 32%, 38%)
HSVhsv(234, 48%, 50%)
CMYKcmyk(48%, 43.3%, 0%, 50.2%)
CIE-LABlab(32.54, 13.46, -31.96)
CIE-LCHlch(32.54, 34.67, 292.84°)
OKLaboklab(42.35% 0.0112 -0.0904)
OKLCHoklch(42.35% 0.091 277.1)
XYZxyz(8.3937, 7.3248, 21.0461)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42487F #7F7942
analogous
#42667F #42487F #5A427F
triadic
#42487F #7F4248 #487F42
tetradic
#42487F #7F4266 #7F7942 #427F5A
square
#42487F #7F4266 #7F7942 #427F5A
split-complementary
#42487F #7F5A42 #667F42
monochromatic
#181A2E #2D3157 #42487F #575FA7 #7F85BC

Accessibility & contrast

On white

8.52
#42487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#42487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42487F
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42487F#FFFFFF#000000##FFFFFF
##42487F1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334F81
Deuteranopia (green-blind)
#2E4A7E
Tritanopia (blue-blind)
#2C535D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #42487f;
/* rgb */ color: rgb(66, 72, 127);
/* oklch */ color: oklch(42.4% 0.091 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a7aa4',
    500: '#42487f',
    950: '#000000',
  },
}
SCSS
$custom: #42487f;
$custom-light: #7a7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42487f",
  "rgb": {
    "r": 66,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 234.098,
    "s": 31.606,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4235,
    "c": 0.09106,
    "h": 277.1
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#42487F
secondary
#A7A275
accent
#BE60C8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #42487F

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

Preview Lab → · Contrast checker → · Palette generator →

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