#221237#221237

#221237 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.070 H 300.9°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#221237
RGBrgb(34, 18, 55)
HSLhsl(266, 51%, 14%)
HSVhsv(266, 67%, 22%)
CMYKcmyk(38.2%, 67.3%, 0%, 78.4%)
CIE-LABlab(9.39, 17.78, -21.20)
CIE-LCHlch(9.39, 27.67, 309.98°)
OKLaboklab(22.64% 0.0359 -0.06)
OKLCHoklch(22.64% 0.07 300.9)
XYZxyz(1.5654, 1.0485, 3.7336)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221237 #273712
analogous
#121537 #221237 #351237
triadic
#221237 #372212 #123722
tetradic
#221237 #371215 #273712 #123735
square
#221237 #371215 #273712 #123735
split-complementary
#221237 #373512 #153712
monochromatic
#0E0817 #0E0817 #221237 #3F2165 #5B3093

Accessibility & contrast

On white

17.36
#221237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#221237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221237
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221237#FFFFFF#000000##FFFFFF
##2212371.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031A38
Deuteranopia (green-blind)
#081A36
Tritanopia (blue-blind)
#1E1922
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #221237;
/* rgb */ color: rgb(34, 18, 55);
/* oklch */ color: oklch(22.6% 0.070 300.9);
Tailwind
colors: {
  custom: {
    50: '#5f506e',
    500: '#221237',
    950: '#000000',
  },
}
SCSS
$custom: #221237;
$custom-light: #5f506e;
$custom-dark: #000000;
JSON
{
  "hex": "#221237",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 265.946,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2264,
    "c": 0.06994,
    "h": 300.9
  },
  "luminance": 0.01049
}

Semantic roles & 50–950 ramp

primary
#221237
secondary
#567035
accent
#DA4E9D
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #221237

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

Preview Lab → · Contrast checker → · Palette generator →

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