#42237C#42237C

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

Color values

HEX#42237C
RGBrgb(66, 35, 124)
HSLhsl(261, 56%, 31%)
HSVhsv(261, 72%, 49%)
CMYKcmyk(46.8%, 71.8%, 0%, 51.4%)
CIE-LABlab(23.05, 35.99, -45.33)
CIE-LCHlch(23.05, 57.87, 308.45°)
OKLaboklab(35.25% 0.0573 -0.1297)
OKLCHoklch(35.25% 0.142 293.8)
XYZxyz(6.4849, 3.8154, 19.4596)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42237C #5D7C23
analogous
#23307C #42237C #6E237C
triadic
#42237C #7C4223 #237C42
tetradic
#42237C #7C2330 #5D7C23 #237C6E
square
#42237C #7C2330 #5D7C23 #237C6E
split-complementary
#42237C #7C6E23 #307C23
monochromatic
#0F081D #29164C #42237C #5B30AC #794DCD

Accessibility & contrast

On white

11.91
#42237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42237C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42237C#FFFFFF#000000##FFFFFF
##42237C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#31394C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42237c;
/* rgb */ color: rgb(66, 35, 124);
/* oklch */ color: oklch(35.2% 0.142 293.8);
Tailwind
colors: {
  custom: {
    50: '#7c60a3',
    500: '#42237c',
    950: '#000000',
  },
}
SCSS
$custom: #42237c;
$custom-light: #7c60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42237c",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 260.899,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35248,
    "c": 0.14181,
    "h": 293.8
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#42237C
secondary
#8CAF4C
accent
#DF49AB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42237C

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

Preview Lab → · Contrast checker → · Palette generator →

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