#42189F#42189F

#42189F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.194 H 286.6°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#42189F
RGBrgb(66, 24, 159)
HSLhsl(259, 74%, 36%)
HSVhsv(259, 85%, 62%)
CMYKcmyk(58.5%, 84.9%, 0%, 37.6%)
CIE-LABlab(24.68, 51.09, -64.42)
CIE-LCHlch(24.68, 82.21, 308.42°)
OKLaboklab(37.43% 0.0554 -0.1855)
OKLCHoklch(37.43% 0.194 286.6)
XYZxyz(8.8295, 4.3142, 33.1616)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42189F #759F18
analogous
#18319F #42189F #85189F
triadic
#42189F #9F4218 #189F42
tetradic
#42189F #9F1831 #759F18 #189F85
square
#42189F #9F1831 #759F18 #189F85
split-complementary
#42189F #9F8518 #319F18
monochromatic
#160835 #2C106A #42189F #5820D4 #7C4DE4

Accessibility & contrast

On white

11.27
#42189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#42189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42189F
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42189F#FFFFFF#000000##FFFFFF
##42189F1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#11435E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42189f;
/* rgb */ color: rgb(66, 24, 159);
/* oklch */ color: oklch(37.4% 0.194 286.6);
Tailwind
colors: {
  custom: {
    50: '#835dbd',
    500: '#42189f',
    950: '#000000',
  },
}
SCSS
$custom: #42189f;
$custom-light: #835dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#42189f",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 258.667,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37429,
    "c": 0.19362,
    "h": 286.6
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#42189F
secondary
#A0C64D
accent
#F037B7
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42189F

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

Preview Lab → · Contrast checker → · Palette generator →

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