#42229C#42229C

#42229C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.182 H 286.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#42229C
RGBrgb(66, 34, 156)
HSLhsl(256, 64%, 37%)
HSVhsv(256, 78%, 61%)
CMYKcmyk(57.7%, 78.2%, 0%, 38.8%)
CIE-LABlab(25.87, 45.88, -60.63)
CIE-LCHlch(25.87, 76.03, 307.11°)
OKLaboklab(38.16% 0.0502 -0.1746)
OKLCHoklch(38.16% 0.182 286)
XYZxyz(8.8177, 4.7021, 31.8890)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42229C #7C9C22
analogous
#223F9C #42229C #7F229C
triadic
#42229C #9C4222 #229C42
tetradic
#42229C #9C223F #7C9C22 #229C7F
square
#42229C #9C223F #7C9C22 #229C7F
split-complementary
#42229C #9C7F22 #3F9C22
monochromatic
#170C38 #2D176A #42229C #572DCE #7E5DDC

Accessibility & contrast

On white

10.82
#42229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#42229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42229C
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42229C#FFFFFF#000000##FFFFFF
##42229C1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#15455E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42229c;
/* rgb */ color: rgb(66, 34, 156);
/* oklch */ color: oklch(38.2% 0.182 286.0);
Tailwind
colors: {
  custom: {
    50: '#8161ba',
    500: '#42229c',
    950: '#000000',
  },
}
SCSS
$custom: #42229c;
$custom-light: #8161ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42229c",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 255.738,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38155,
    "c": 0.18168,
    "h": 286
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#42229C
secondary
#A5C05A
accent
#E741BC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #42229C

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

Preview Lab → · Contrast checker → · Palette generator →

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