#42236B#42236B

#42236B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.120 H 299.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#42236B
RGBrgb(66, 35, 107)
HSLhsl(266, 51%, 28%)
HSVhsv(266, 67%, 42%)
CMYKcmyk(38.3%, 67.3%, 0%, 58%)
CIE-LABlab(21.66, 31.08, -36.68)
CIE-LCHlch(21.66, 48.08, 310.28°)
OKLaboklab(33.81% 0.0596 -0.1043)
OKLCHoklch(33.81% 0.12 299.8)
XYZxyz(5.5010, 3.4218, 14.2777)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42236B #4C6B23
analogous
#23286B #42236B #66236B
triadic
#42236B #6B4223 #236B42
tetradic
#42236B #6B2328 #4C6B23 #236B66
square
#42236B #6B2328 #4C6B23 #236B66
split-complementary
#42236B #6B6623 #286B23
monochromatic
#0E0817 #26143D #42236B #5E3299 #7C46C2

Accessibility & contrast

On white

12.47
#42236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#42236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42236B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42236B#FFFFFF#000000##FFFFFF
##42236B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#033369
Tritanopia (blue-blind)
#393343
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42236b;
/* rgb */ color: rgb(66, 35, 107);
/* oklch */ color: oklch(33.8% 0.120 299.8);
Tailwind
colors: {
  custom: {
    50: '#7a6096',
    500: '#42236b',
    950: '#000000',
  },
}
SCSS
$custom: #42236b;
$custom-light: #7a6096;
$custom-dark: #000000;
JSON
{
  "hex": "#42236b",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 265.833,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3381,
    "c": 0.12016,
    "h": 299.8
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#42236B
secondary
#7B9E4B
accent
#DA4E9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42236B

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

Preview Lab → · Contrast checker → · Palette generator →

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