#42418D#42418D

#42418D is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.8% C 0.123 H 280.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#42418D
RGBrgb(66, 65, 141)
HSLhsl(241, 37%, 40%)
HSVhsv(241, 54%, 55%)
CMYKcmyk(53.2%, 53.9%, 0%, 44.7%)
CIE-LABlab(31.49, 22.72, -42.28)
CIE-LCHlch(31.49, 48.00, 298.26°)
OKLaboklab(41.84% 0.0219 -0.1207)
OKLCHoklch(41.84% 0.123 280.3)
XYZxyz(8.9433, 6.8614, 26.0473)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42418D #8C8D41
analogous
#41668D #42418D #68418D
triadic
#42418D #8D4241 #418D42
tetradic
#42418D #8D4166 #8C8D41 #418D68
square
#42418D #8D4166 #8C8D41 #418D68
split-complementary
#42418D #8D6841 #668D41
monochromatic
#1B1A39 #2E2E63 #42418D #5A59B2 #8483C6

Accessibility & contrast

On white

8.85
#42418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#42418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42418D
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42418D#FFFFFF#000000##FFFFFF
##42418D1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#0F478B
Tritanopia (blue-blind)
#235260
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #42418d;
/* rgb */ color: rgb(66, 65, 141);
/* oklch */ color: oklch(41.8% 0.123 280.3);
Tailwind
colors: {
  custom: {
    50: '#7c75af',
    500: '#42418d',
    950: '#000000',
  },
}
SCSS
$custom: #42418d;
$custom-light: #7c75af;
$custom-dark: #000000;
JSON
{
  "hex": "#42418d",
  "rgb": {
    "r": 66,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 240.789,
    "s": 36.893,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41843,
    "c": 0.12267,
    "h": 280.3
  },
  "luminance": 0.06862
}

Semantic roles & 50–950 ramp

primary
#42418D
secondary
#B0B079
accent
#CD5BCB
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #42418D

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

Preview Lab → · Contrast checker → · Palette generator →

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