#42188D#42188D

#42188D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.174 H 290.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#42188D
RGBrgb(66, 24, 141)
HSLhsl(262, 71%, 32%)
HSVhsv(262, 83%, 55%)
CMYKcmyk(53.2%, 83%, 0%, 44.7%)
CIE-LABlab(22.77, 46.18, -56.47)
CIE-LCHlch(22.77, 72.95, 309.28°)
OKLaboklab(35.54% 0.062 -0.1623)
OKLCHoklch(35.54% 0.174 290.9)
XYZxyz(7.3797, 3.7343, 25.5261)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42188D #638D18
analogous
#18298D #42188D #7C188D
triadic
#42188D #8D4218 #188D42
tetradic
#42188D #8D1829 #638D18 #188D7C
square
#42188D #8D1829 #638D18 #188D7C
split-complementary
#42188D #8D7C18 #298D18
monochromatic
#110624 #2A0F59 #42188D #5A21C1 #7941DF

Accessibility & contrast

On white

12.02
#42188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#42188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42188D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42188D#FFFFFF#000000##FFFFFF
##42188D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#273B53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42188d;
/* rgb */ color: rgb(66, 24, 141);
/* oklch */ color: oklch(35.5% 0.174 290.9);
Tailwind
colors: {
  custom: {
    50: '#805baf',
    500: '#42188d',
    950: '#000000',
  },
}
SCSS
$custom: #42188d;
$custom-light: #805baf;
$custom-dark: #000000;
JSON
{
  "hex": "#42188d",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 261.538,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35544,
    "c": 0.17377,
    "h": 290.9
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#42188D
secondary
#92BF42
accent
#EE3AAD
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #42188D

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

Preview Lab → · Contrast checker → · Palette generator →

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