#42229E#42229E

#42229E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.184 H 285.7°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#42229E
RGBrgb(66, 34, 158)
HSLhsl(255, 65%, 38%)
HSVhsv(255, 78%, 62%)
CMYKcmyk(58.2%, 78.5%, 0%, 38%)
CIE-LABlab(26.07, 46.46, -61.52)
CIE-LCHlch(26.07, 77.09, 307.06°)
OKLaboklab(38.36% 0.0496 -0.1772)
OKLCHoklch(38.36% 0.184 285.7)
XYZxyz(8.9885, 4.7704, 32.7883)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42229E #7E9E22
analogous
#22409E #42229E #80229E
triadic
#42229E #9E4222 #229E42
tetradic
#42229E #9E2240 #7E9E22 #229E80
square
#42229E #9E2240 #7E9E22 #229E80
split-complementary
#42229E #9E8022 #409E22
monochromatic
#180C39 #2D176C #42229E #572DD0 #7F5EDC

Accessibility & contrast

On white

10.75
#42229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#42229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42229E
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42229E#FFFFFF#000000##FFFFFF
##42229E1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#12465F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42229e;
/* rgb */ color: rgb(66, 34, 158);
/* oklch */ color: oklch(38.4% 0.184 285.7);
Tailwind
colors: {
  custom: {
    50: '#8262bc',
    500: '#42229e',
    950: '#000000',
  },
}
SCSS
$custom: #42229e;
$custom-light: #8262bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42229e",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 255.484,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38356,
    "c": 0.18401,
    "h": 285.7
  },
  "luminance": 0.04771
}

Semantic roles & 50–950 ramp

primary
#42229E
secondary
#A7C15B
accent
#E840BC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42229E

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

Preview Lab → · Contrast checker → · Palette generator →

#42229E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva