#42408E#42408E

#42408E is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.126 H 280.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#42408E
RGBrgb(66, 64, 142)
HSLhsl(242, 38%, 40%)
HSVhsv(242, 55%, 56%)
CMYKcmyk(53.5%, 54.9%, 0%, 44.3%)
CIE-LABlab(31.29, 23.71, -43.20)
CIE-LCHlch(31.29, 49.28, 298.76°)
OKLaboklab(41.72% 0.0231 -0.1234)
OKLCHoklch(41.72% 0.126 280.6)
XYZxyz(8.9611, 6.7775, 26.4219)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42408E #8C8E40
analogous
#40658E #42408E #69408E
triadic
#42408E #8E4240 #408E42
tetradic
#42408E #8E4065 #8C8E40 #408E69
square
#42408E #8E4065 #8C8E40 #408E69
split-complementary
#42408E #8E6940 #658E40
monochromatic
#1B1A3A #2E2D64 #42408E #5A58B4 #8482C7

Accessibility & contrast

On white

8.91
#42408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#42408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42408E
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42408E#FFFFFF#000000##FFFFFF
##42408E1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144D91
Deuteranopia (green-blind)
#08478C
Tritanopia (blue-blind)
#225260
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #42408e;
/* rgb */ color: rgb(66, 64, 142);
/* oklch */ color: oklch(41.7% 0.126 280.6);
Tailwind
colors: {
  custom: {
    50: '#7d75b0',
    500: '#42408e',
    950: '#000000',
  },
}
SCSS
$custom: #42408e;
$custom-light: #7d75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42408e",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 241.538,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4172,
    "c": 0.12559,
    "h": 280.6
  },
  "luminance": 0.06778
}

Semantic roles & 50–950 ramp

primary
#42408E
secondary
#B0B179
accent
#CE5ACB
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #42408E

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

Preview Lab → · Contrast checker → · Palette generator →

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