#42229F#42229F

#42229F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.185 H 285.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#42229F
RGBrgb(66, 34, 159)
HSLhsl(255, 65%, 38%)
HSVhsv(255, 79%, 62%)
CMYKcmyk(58.5%, 78.6%, 0%, 37.6%)
CIE-LABlab(26.17, 46.75, -61.96)
CIE-LCHlch(26.17, 77.62, 307.04°)
OKLaboklab(38.46% 0.0494 -0.1785)
OKLCHoklch(38.46% 0.185 285.5)
XYZxyz(9.0749, 4.8050, 33.2434)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42229F #7F9F22
analogous
#22409F #42229F #80229F
triadic
#42229F #9F4222 #229F42
tetradic
#42229F #9F2240 #7F9F22 #229F80
square
#42229F #9F2240 #7F9F22 #229F80
split-complementary
#42229F #9F8022 #409F22
monochromatic
#180C3A #2D176D #42229F #572DD1 #7F5FDD

Accessibility & contrast

On white

10.71
#42229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#42229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42229F
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42229F#FFFFFF#000000##FFFFFF
##42229F1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#104660
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42229f;
/* rgb */ color: rgb(66, 34, 159);
/* oklch */ color: oklch(38.5% 0.185 285.5);
Tailwind
colors: {
  custom: {
    50: '#8262bd',
    500: '#42229f',
    950: '#000000',
  },
}
SCSS
$custom: #42229f;
$custom-light: #8262bd;
$custom-dark: #000000;
JSON
{
  "hex": "#42229f",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 255.36,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38458,
    "c": 0.18519,
    "h": 285.5
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

primary
#42229F
secondary
#A7C15B
accent
#E840BD
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #42229F

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

Preview Lab → · Contrast checker → · Palette generator →

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