#42237B#42237B

#42237B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.141 H 294.1°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#42237B
RGBrgb(66, 35, 123)
HSLhsl(261, 56%, 31%)
HSVhsv(261, 72%, 48%)
CMYKcmyk(46.3%, 71.5%, 0%, 51.8%)
CIE-LABlab(22.97, 35.69, -44.83)
CIE-LCHlch(22.97, 57.31, 308.53°)
OKLaboklab(35.16% 0.0574 -0.1283)
OKLCHoklch(35.16% 0.141 294.1)
XYZxyz(6.4220, 3.7902, 19.1283)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42237B #5C7B23
analogous
#23307B #42237B #6E237B
triadic
#42237B #7B4223 #237B42
tetradic
#42237B #7B2330 #5C7B23 #237B6E
square
#42237B #7B2330 #5C7B23 #237B6E
split-complementary
#42237B #7B6E23 #307B23
monochromatic
#0F081C #28154B #42237B #5C31AB #794CCC

Accessibility & contrast

On white

11.95
#42237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#42237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42237B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42237B#FFFFFF#000000##FFFFFF
##42237B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#32394C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42237b;
/* rgb */ color: rgb(66, 35, 123);
/* oklch */ color: oklch(35.2% 0.141 294.1);
Tailwind
colors: {
  custom: {
    50: '#7c60a2',
    500: '#42237b',
    950: '#000000',
  },
}
SCSS
$custom: #42237b;
$custom-light: #7c60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#42237b",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 261.136,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35159,
    "c": 0.14056,
    "h": 294.1
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#42237B
secondary
#8BAE4C
accent
#DF49AA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42237B

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

Preview Lab → · Contrast checker → · Palette generator →

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