#42229B#42229B

#42229B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.181 H 286.3°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#42229B
RGBrgb(66, 34, 155)
HSLhsl(256, 64%, 37%)
HSVhsv(256, 78%, 61%)
CMYKcmyk(57.4%, 78.1%, 0%, 39.2%)
CIE-LABlab(25.77, 45.59, -60.18)
CIE-LCHlch(25.77, 75.50, 307.14°)
OKLaboklab(38.05% 0.0505 -0.1733)
OKLCHoklch(38.05% 0.181 286.3)
XYZxyz(8.7334, 4.6684, 31.4449)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42229B #7B9B22
analogous
#223E9B #42229B #7F229B
triadic
#42229B #9B4222 #229B42
tetradic
#42229B #9B223E #7B9B22 #229B7F
square
#42229B #9B223E #7B9B22 #229B7F
split-complementary
#42229B #9B7F22 #3E9B22
monochromatic
#170C37 #2D1769 #42229B #572DCD #7E5CDB

Accessibility & contrast

On white

10.86
#42229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#42229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42229B
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42229B#FFFFFF#000000##FFFFFF
##42229B1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#17455E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42229b;
/* rgb */ color: rgb(66, 34, 155);
/* oklch */ color: oklch(38.1% 0.181 286.3);
Tailwind
colors: {
  custom: {
    50: '#8161ba',
    500: '#42229b',
    950: '#000000',
  },
}
SCSS
$custom: #42229b;
$custom-light: #8161ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42229b",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 255.868,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.18051,
    "h": 286.3
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#42229B
secondary
#A5C059
accent
#E741BB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #42229B

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

Preview Lab → · Contrast checker → · Palette generator →

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