#221245#221245

#221245 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.091 H 292.6°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#221245
RGBrgb(34, 18, 69)
HSLhsl(259, 59%, 17%)
HSVhsv(259, 74%, 27%)
CMYKcmyk(50.7%, 73.9%, 0%, 72.9%)
CIE-LABlab(10.57, 22.33, -29.25)
CIE-LCHlch(10.57, 36.80, 307.36°)
OKLaboklab(23.88% 0.0349 -0.0837)
OKLCHoklch(23.88% 0.091 292.6)
XYZxyz(1.9499, 1.2023, 5.7584)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221245 #354512
analogous
#121B45 #221245 #3C1245
triadic
#221245 #452212 #124522
tetradic
#221245 #45121B #354512 #12453C
square
#221245 #45121B #354512 #12453C
split-complementary
#221245 #453C12 #1B4512
monochromatic
#0C0618 #0C0618 #221245 #3A1F76 #522BA6

Accessibility & contrast

On white

16.93
#221245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#221245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221245
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221245#FFFFFF#000000##FFFFFF
##2212451.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D47
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#181E29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #221245;
/* rgb */ color: rgb(34, 18, 69);
/* oklch */ color: oklch(23.9% 0.091 292.6);
Tailwind
colors: {
  custom: {
    50: '#615179',
    500: '#221245',
    950: '#000000',
  },
}
SCSS
$custom: #221245;
$custom-light: #615179;
$custom-dark: #000000;
JSON
{
  "hex": "#221245",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 258.824,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23877,
    "c": 0.09065,
    "h": 292.6
  },
  "luminance": 0.01202
}

Semantic roles & 50–950 ramp

primary
#221245
secondary
#677E35
accent
#E246B1
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050209
muted
#79787B

Preview Lab

Preview with #221245

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

Preview Lab → · Contrast checker → · Palette generator →

#221245 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva