#42408F#42408F

#42408F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.127 H 280.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#42408F
RGBrgb(66, 64, 143)
HSLhsl(242, 38%, 41%)
HSVhsv(242, 55%, 56%)
CMYKcmyk(53.8%, 55.2%, 0%, 43.9%)
CIE-LABlab(31.37, 24.05, -43.71)
CIE-LCHlch(31.37, 49.88, 298.82°)
OKLaboklab(41.8% 0.0232 -0.1249)
OKLCHoklch(41.8% 0.127 280.5)
XYZxyz(9.0366, 6.8077, 26.8191)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42408F #8D8F40
analogous
#40658F #42408F #69408F
triadic
#42408F #8F4240 #408F42
tetradic
#42408F #8F4065 #8D8F40 #408F69
square
#42408F #8F4065 #8D8F40 #408F69
split-complementary
#42408F #8F6940 #658F40
monochromatic
#1B1A3A #2E2D65 #42408F #5A58B4 #8482C7

Accessibility & contrast

On white

8.89
#42408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42408F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42408F#FFFFFF#000000##FFFFFF
##42408F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124D92
Deuteranopia (green-blind)
#05478D
Tritanopia (blue-blind)
#215261
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #42408f;
/* rgb */ color: rgb(66, 64, 143);
/* oklch */ color: oklch(41.8% 0.127 280.5);
Tailwind
colors: {
  custom: {
    50: '#7d75b0',
    500: '#42408f',
    950: '#000000',
  },
}
SCSS
$custom: #42408f;
$custom-light: #7d75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42408f",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 241.519,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41795,
    "c": 0.12704,
    "h": 280.5
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42408F

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

Preview Lab → · Contrast checker → · Palette generator →

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