#42188F#42188F

#42188F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.176 H 290.4°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#42188F
RGBrgb(66, 24, 143)
HSLhsl(261, 71%, 33%)
HSVhsv(261, 83%, 56%)
CMYKcmyk(53.8%, 83.2%, 0%, 43.9%)
CIE-LABlab(22.98, 46.73, -57.38)
CIE-LCHlch(22.98, 74.00, 309.16°)
OKLaboklab(35.75% 0.0613 -0.165)
OKLCHoklch(35.75% 0.176 290.4)
XYZxyz(7.5299, 3.7944, 26.3169)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42188F #658F18
analogous
#182A8F #42188F #7D188F
triadic
#42188F #8F4218 #188F42
tetradic
#42188F #8F182A #658F18 #188F7D
square
#42188F #8F182A #658F18 #188F7D
split-complementary
#42188F #8F7D18 #2A8F18
monochromatic
#120626 #2A0F5B #42188F #5A21C3 #7A42DF

Accessibility & contrast

On white

11.94
#42188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#42188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42188F
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42188F#FFFFFF#000000##FFFFFF
##42188F1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#253C55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42188f;
/* rgb */ color: rgb(66, 24, 143);
/* oklch */ color: oklch(35.7% 0.176 290.4);
Tailwind
colors: {
  custom: {
    50: '#805cb1',
    500: '#42188f',
    950: '#000000',
  },
}
SCSS
$custom: #42188f;
$custom-light: #805cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#42188f",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 261.176,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35749,
    "c": 0.176,
    "h": 290.4
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#42188F
secondary
#94C043
accent
#EE3AAE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #42188F

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

Preview Lab → · Contrast checker → · Palette generator →

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