#42487E#42487E

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

Color values

HEX#42487E
RGBrgb(66, 72, 126)
HSLhsl(234, 31%, 38%)
HSVhsv(234, 48%, 49%)
CMYKcmyk(47.6%, 42.9%, 0%, 50.6%)
CIE-LABlab(32.48, 13.13, -31.43)
CIE-LCHlch(32.48, 34.06, 292.67°)
OKLaboklab(42.29% 0.011 -0.0888)
OKLCHoklch(42.29% 0.09 277.1)
XYZxyz(8.3289, 7.2989, 20.7046)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42487E #7E7842
analogous
#42667E #42487E #5A427E
triadic
#42487E #7E4248 #487E42
tetradic
#42487E #7E4266 #7E7842 #427E5A
square
#42487E #7E4266 #7E7842 #427E5A
split-complementary
#42487E #7E5A42 #667E42
monochromatic
#181A2E #2D3156 #42487E #575FA6 #7F85BC

Accessibility & contrast

On white

8.54
#42487E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#42487E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42487E
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42487E#FFFFFF#000000##FFFFFF
##42487E1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344F80
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#2D535D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #42487e;
/* rgb */ color: rgb(66, 72, 126);
/* oklch */ color: oklch(42.3% 0.089 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a7aa4',
    500: '#42487e',
    950: '#000000',
  },
}
SCSS
$custom: #42487e;
$custom-light: #7a7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42487e",
  "rgb": {
    "r": 66,
    "g": 72,
    "b": 126
  },
  "hsl": {
    "h": 234,
    "s": 31.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42287,
    "c": 0.0895,
    "h": 277.1
  },
  "luminance": 0.07299
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42487E

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

Preview Lab → · Contrast checker → · Palette generator →

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