#42237D#42237D

#42237D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.143 H 293.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#42237D
RGBrgb(66, 35, 125)
HSLhsl(261, 56%, 31%)
HSVhsv(261, 72%, 49%)
CMYKcmyk(47.2%, 72%, 0%, 51%)
CIE-LABlab(23.14, 36.28, -45.82)
CIE-LCHlch(23.14, 58.44, 308.37°)
OKLaboklab(35.34% 0.0571 -0.1312)
OKLCHoklch(35.34% 0.143 293.5)
XYZxyz(6.5485, 3.8408, 19.7944)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42237D #5E7D23
analogous
#23317D #42237D #6F237D
triadic
#42237D #7D4223 #237D42
tetradic
#42237D #7D2331 #5E7D23 #237D6F
square
#42237D #7D2331 #5E7D23 #237D6F
split-complementary
#42237D #7D6F23 #317D23
monochromatic
#10081D #29164D #42237D #5B30AD #794DCD

Accessibility & contrast

On white

11.88
#42237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#42237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42237D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42237D#FFFFFF#000000##FFFFFF
##42237D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#313A4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42237d;
/* rgb */ color: rgb(66, 35, 125);
/* oklch */ color: oklch(35.3% 0.143 293.5);
Tailwind
colors: {
  custom: {
    50: '#7c60a3',
    500: '#42237d',
    950: '#000000',
  },
}
SCSS
$custom: #42237d;
$custom-light: #7c60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42237d",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 260.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35336,
    "c": 0.14306,
    "h": 293.5
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#42237D
secondary
#8DAF4C
accent
#E048AB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42237D

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

Preview Lab → · Contrast checker → · Palette generator →

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