#42229D#42229D

#42229D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.183 H 285.8°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#42229D
RGBrgb(66, 34, 157)
HSLhsl(256, 64%, 37%)
HSVhsv(256, 78%, 62%)
CMYKcmyk(58%, 78.3%, 0%, 38.4%)
CIE-LABlab(25.97, 46.17, -61.08)
CIE-LCHlch(25.97, 76.56, 307.09°)
OKLaboklab(38.26% 0.0499 -0.1759)
OKLCHoklch(38.26% 0.183 285.8)
XYZxyz(8.9028, 4.7361, 32.3368)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42229D #7D9D22
analogous
#223F9D #42229D #80229D
triadic
#42229D #9D4222 #229D42
tetradic
#42229D #9D223F #7D9D22 #229D80
square
#42229D #9D223F #7D9D22 #229D80
split-complementary
#42229D #9D8022 #3F9D22
monochromatic
#180C38 #2D176B #42229D #572DCF #7E5DDC

Accessibility & contrast

On white

10.78
#42229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42229D
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42229D#FFFFFF#000000##FFFFFF
##42229D1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#14465F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42229d;
/* rgb */ color: rgb(66, 34, 157);
/* oklch */ color: oklch(38.3% 0.183 285.8);
Tailwind
colors: {
  custom: {
    50: '#8161bb',
    500: '#42229d',
    950: '#000000',
  },
}
SCSS
$custom: #42229d;
$custom-light: #8161bb;
$custom-dark: #000000;
JSON
{
  "hex": "#42229d",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 255.61,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38255,
    "c": 0.18285,
    "h": 285.8
  },
  "luminance": 0.04737
}

Semantic roles & 50–950 ramp

primary
#42229D
secondary
#A6C15A
accent
#E740BC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42229D

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

Preview Lab → · Contrast checker → · Palette generator →

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