#42408B#42408B

#42408B is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.121 H 280.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#42408B
RGBrgb(66, 64, 139)
HSLhsl(242, 37%, 40%)
HSVhsv(242, 54%, 55%)
CMYKcmyk(52.5%, 54%, 0%, 45.5%)
CIE-LABlab(31.09, 22.71, -41.69)
CIE-LCHlch(31.09, 47.48, 298.58°)
OKLaboklab(41.5% 0.023 -0.119)
OKLCHoklch(41.5% 0.121 280.9)
XYZxyz(8.7389, 6.6886, 25.2516)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42408B #898B40
analogous
#40648B #42408B #68408B
triadic
#42408B #8B4240 #408B42
tetradic
#42408B #8B4064 #898B40 #408B68
square
#42408B #8B4064 #898B40 #408B68
split-complementary
#42408B #8B6840 #648B40
monochromatic
#1A1937 #2E2D61 #42408B #5957B2 #8281C5

Accessibility & contrast

On white

8.98
#42408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#42408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42408B
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42408B#FFFFFF#000000##FFFFFF
##42408B1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8E
Deuteranopia (green-blind)
#104689
Tritanopia (blue-blind)
#25515F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #42408b;
/* rgb */ color: rgb(66, 64, 139);
/* oklch */ color: oklch(41.5% 0.121 280.9);
Tailwind
colors: {
  custom: {
    50: '#7c75ad',
    500: '#42408b',
    950: '#000000',
  },
}
SCSS
$custom: #42408b;
$custom-light: #7c75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#42408b",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 241.6,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41498,
    "c": 0.12118,
    "h": 280.9
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#42408B
secondary
#AEAF78
accent
#CD5BCA
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #42408B

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

Preview Lab → · Contrast checker → · Palette generator →

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