#42408D#42408D

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

Color values

HEX#42408D
RGBrgb(66, 64, 141)
HSLhsl(242, 38%, 40%)
HSVhsv(242, 55%, 55%)
CMYKcmyk(53.2%, 54.6%, 0%, 44.7%)
CIE-LABlab(31.23, 23.38, -42.70)
CIE-LCHlch(31.23, 48.68, 298.70°)
OKLaboklab(41.65% 0.0231 -0.122)
OKLCHoklch(41.65% 0.124 280.7)
XYZxyz(8.8864, 6.7476, 26.0283)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42408D #8B8D40
analogous
#40658D #42408D #68408D
triadic
#42408D #8D4240 #408D42
tetradic
#42408D #8D4065 #8B8D40 #408D68
square
#42408D #8D4065 #8B8D40 #408D68
split-complementary
#42408D #8D6840 #658D40
monochromatic
#1B1A39 #2E2D63 #42408D #5A57B3 #8381C6

Accessibility & contrast

On white

8.94
#42408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#42408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42408D
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42408D#FFFFFF#000000##FFFFFF
##42408D1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C90
Deuteranopia (green-blind)
#0B478B
Tritanopia (blue-blind)
#235160
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #42408d;
/* rgb */ color: rgb(66, 64, 141);
/* oklch */ color: oklch(41.6% 0.124 280.7);
Tailwind
colors: {
  custom: {
    50: '#7c75af',
    500: '#42408d',
    950: '#000000',
  },
}
SCSS
$custom: #42408d;
$custom-light: #7c75af;
$custom-dark: #000000;
JSON
{
  "hex": "#42408d",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 241.558,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41646,
    "c": 0.12412,
    "h": 280.7
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

primary
#42408D
secondary
#AFB078
accent
#CE5ACB
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #42408D

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

Preview Lab → · Contrast checker → · Palette generator →

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