#42239B#42239B

#42239B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.180 H 286.1°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#42239B
RGBrgb(66, 35, 155)
HSLhsl(256, 63%, 37%)
HSVhsv(256, 77%, 61%)
CMYKcmyk(57.4%, 77.4%, 0%, 39.2%)
CIE-LABlab(25.94, 45.09, -59.90)
CIE-LCHlch(25.94, 74.98, 306.97°)
OKLaboklab(38.17% 0.0498 -0.1725)
OKLCHoklch(38.17% 0.18 286.1)
XYZxyz(8.7624, 4.7264, 31.4545)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42239B #7C9B23
analogous
#23409B #42239B #7E239B
triadic
#42239B #9B4223 #239B42
tetradic
#42239B #9B2340 #7C9B23 #239B7E
square
#42239B #9B2340 #7C9B23 #239B7E
split-complementary
#42239B #9B7E23 #409B23
monochromatic
#170C37 #2D1869 #42239B #572ECD #7E5EDB

Accessibility & contrast

On white

10.79
#42239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#42239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42239B
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42239B#FFFFFF#000000##FFFFFF
##42239B1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#17455E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42239b;
/* rgb */ color: rgb(66, 35, 155);
/* oklch */ color: oklch(38.2% 0.180 286.1);
Tailwind
colors: {
  custom: {
    50: '#8162ba',
    500: '#42239b',
    950: '#000000',
  },
}
SCSS
$custom: #42239b;
$custom-light: #8162ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42239b",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 255.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38175,
    "c": 0.17952,
    "h": 286.1
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#42239B
secondary
#A5BF5A
accent
#E642BC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42239B

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

Preview Lab → · Contrast checker → · Palette generator →

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