#42408C#42408C

#42408C is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.123 H 280.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#42408C
RGBrgb(66, 64, 140)
HSLhsl(242, 37%, 40%)
HSVhsv(242, 54%, 55%)
CMYKcmyk(52.9%, 54.3%, 0%, 45.1%)
CIE-LABlab(31.16, 23.04, -42.20)
CIE-LCHlch(31.16, 48.08, 298.64°)
OKLaboklab(41.57% 0.023 -0.1205)
OKLCHoklch(41.57% 0.123 280.8)
XYZxyz(8.8123, 6.7180, 25.6382)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42408C #8A8C40
analogous
#40648C #42408C #68408C
triadic
#42408C #8C4240 #408C42
tetradic
#42408C #8C4064 #8A8C40 #408C68
square
#42408C #8C4064 #8A8C40 #408C68
split-complementary
#42408C #8C6840 #648C40
monochromatic
#1A1A38 #2E2D62 #42408C #5957B2 #8381C5

Accessibility & contrast

On white

8.96
#42408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42408C
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42408C#FFFFFF#000000##FFFFFF
##42408C1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8F
Deuteranopia (green-blind)
#0E478A
Tritanopia (blue-blind)
#24515F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #42408c;
/* rgb */ color: rgb(66, 64, 140);
/* oklch */ color: oklch(41.6% 0.123 280.8);
Tailwind
colors: {
  custom: {
    50: '#7c75ae',
    500: '#42408c',
    950: '#000000',
  },
}
SCSS
$custom: #42408c;
$custom-light: #7c75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42408c",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 241.579,
    "s": 37.255,
    "l": 40
  },
  "oklch": {
    "l": 0.41572,
    "c": 0.12266,
    "h": 280.8
  },
  "luminance": 0.06718
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42408C

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

Preview Lab → · Contrast checker → · Palette generator →

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