#221246#221246

#221246 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.092 H 292.1°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#221246
RGBrgb(34, 18, 70)
HSLhsl(258, 59%, 17%)
HSVhsv(258, 74%, 27%)
CMYKcmyk(51.4%, 74.3%, 0%, 72.5%)
CIE-LABlab(10.67, 22.66, -29.81)
CIE-LCHlch(10.67, 37.44, 307.25°)
OKLaboklab(23.97% 0.0347 -0.0853)
OKLCHoklch(23.97% 0.092 292.1)
XYZxyz(1.9812, 1.2148, 5.9233)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221246 #364612
analogous
#121C46 #221246 #3C1246
triadic
#221246 #462212 #124622
tetradic
#221246 #46121C #364612 #12463C
square
#221246 #46121C #364612 #12463C
split-complementary
#221246 #463C12 #1C4612
monochromatic
#0C0618 #0C0618 #221246 #3A1F77 #512BA7

Accessibility & contrast

On white

16.89
#221246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221246
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221246#FFFFFF#000000##FFFFFF
##2212461.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#001C45
Tritanopia (blue-blind)
#171F2A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #221246;
/* rgb */ color: rgb(34, 18, 70);
/* oklch */ color: oklch(24.0% 0.092 292.1);
Tailwind
colors: {
  custom: {
    50: '#61517a',
    500: '#221246',
    950: '#000000',
  },
}
SCSS
$custom: #221246;
$custom-light: #61517a;
$custom-dark: #000000;
JSON
{
  "hex": "#221246",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 258.462,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23972,
    "c": 0.09209,
    "h": 292.1
  },
  "luminance": 0.01215
}

Semantic roles & 50–950 ramp

primary
#221246
secondary
#687F35
accent
#E246B2
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050209
muted
#79787B

Preview Lab

Preview with #221246

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

Preview Lab → · Contrast checker → · Palette generator →

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