#42218B#42218B

#42218B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.163 H 290.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#42218B
RGBrgb(66, 33, 139)
HSLhsl(259, 62%, 34%)
HSVhsv(259, 76%, 55%)
CMYKcmyk(52.5%, 76.3%, 0%, 45.5%)
CIE-LABlab(24.03, 41.43, -53.16)
CIE-LCHlch(24.03, 67.40, 307.93°)
OKLaboklab(36.36% 0.0558 -0.1527)
OKLCHoklch(36.36% 0.163 290.1)
XYZxyz(7.4495, 4.1097, 24.8218)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42218B #6A8B21
analogous
#21358B #42218B #77218B
triadic
#42218B #8B4221 #218B42
tetradic
#42218B #8B2135 #6A8B21 #218B77
square
#42218B #8B2135 #6A8B21 #218B77
split-complementary
#42218B #8B7721 #358B21
monochromatic
#130A28 #2B155A #42218B #592DBC #7A51D6

Accessibility & contrast

On white

11.53
#42218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#42218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42218B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42218B#FFFFFF#000000##FFFFFF
##42218B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#283E54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42218b;
/* rgb */ color: rgb(66, 33, 139);
/* oklch */ color: oklch(36.4% 0.163 290.1);
Tailwind
colors: {
  custom: {
    50: '#7f60ae',
    500: '#42218b',
    950: '#000000',
  },
}
SCSS
$custom: #42218b;
$custom-light: #7f60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42218b",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 258.679,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36361,
    "c": 0.16258,
    "h": 290.1
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

primary
#42218B
secondary
#98B94F
accent
#E543B2
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42218B

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

Preview Lab → · Contrast checker → · Palette generator →

#42218B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva