#221235#221235

#221235 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.067 H 302.4°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#221235
RGBrgb(34, 18, 53)
HSLhsl(267, 49%, 14%)
HSVhsv(267, 66%, 21%)
CMYKcmyk(35.8%, 66%, 0%, 79.2%)
CIE-LABlab(9.24, 17.15, -20.00)
CIE-LCHlch(9.24, 26.35, 310.62°)
OKLaboklab(22.48% 0.0359 -0.0565)
OKLCHoklch(22.48% 0.067 302.4)
XYZxyz(1.5185, 1.0297, 3.4862)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221235 #253512
analogous
#121435 #221235 #341235
triadic
#221235 #352212 #123522
tetradic
#221235 #351214 #253512 #123534
square
#221235 #351214 #253512 #123534
split-complementary
#221235 #353412 #143512
monochromatic
#0F0817 #0F0817 #221235 #3F2263 #5D3190

Accessibility & contrast

On white

17.41
#221235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221235
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221235#FFFFFF#000000##FFFFFF
##2212351.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051A36
Deuteranopia (green-blind)
#0A1A34
Tritanopia (blue-blind)
#1E1921
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #221235;
/* rgb */ color: rgb(34, 18, 53);
/* oklch */ color: oklch(22.5% 0.067 302.4);
Tailwind
colors: {
  custom: {
    50: '#5f506c',
    500: '#221235',
    950: '#000000',
  },
}
SCSS
$custom: #221235;
$custom-light: #5f506c;
$custom-dark: #000000;
JSON
{
  "hex": "#221235",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 267.429,
    "s": 49.296,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22479,
    "c": 0.06691,
    "h": 302.4
  },
  "luminance": 0.0103
}

Semantic roles & 50–950 ramp

primary
#221235
secondary
#546D35
accent
#D94F9A
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040207
muted
#79787A

Preview Lab

Preview with #221235

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

Preview Lab → · Contrast checker → · Palette generator →

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