#42408A#42408A

#42408A is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.4% C 0.120 H 281.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#42408A
RGBrgb(66, 64, 138)
HSLhsl(242, 37%, 40%)
HSVhsv(242, 54%, 54%)
CMYKcmyk(52.2%, 53.6%, 0%, 45.9%)
CIE-LABlab(31.02, 22.38, -41.19)
CIE-LCHlch(31.02, 46.87, 298.51°)
OKLaboklab(41.43% 0.0229 -0.1175)
OKLCHoklch(41.43% 0.12 281)
XYZxyz(8.6662, 6.6595, 24.8686)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42408A #888A40
analogous
#40638A #42408A #67408A
triadic
#42408A #8A4240 #408A42
tetradic
#42408A #8A4063 #888A40 #408A67
square
#42408A #8A4063 #888A40 #408A67
split-complementary
#42408A #8A6740 #638A40
monochromatic
#1A1936 #2E2D60 #42408A #5956B1 #8280C4

Accessibility & contrast

On white

9.01
#42408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#42408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42408A
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42408A#FFFFFF#000000##FFFFFF
##42408A1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8D
Deuteranopia (green-blind)
#124688
Tritanopia (blue-blind)
#26505E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #42408a;
/* rgb */ color: rgb(66, 64, 138);
/* oklch */ color: oklch(41.4% 0.120 281.0);
Tailwind
colors: {
  custom: {
    50: '#7c74ad',
    500: '#42408a',
    950: '#000000',
  },
}
SCSS
$custom: #42408a;
$custom-light: #7c74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#42408a",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 241.622,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41425,
    "c": 0.11971,
    "h": 281
  },
  "luminance": 0.0666
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42408A

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

Preview Lab → · Contrast checker → · Palette generator →

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