#211252#211252

#211252 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.109 H 286.3°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#211252
RGBrgb(33, 18, 82)
HSLhsl(254, 64%, 20%)
HSVhsv(254, 78%, 32%)
CMYKcmyk(59.8%, 78%, 0%, 67.8%)
CIE-LABlab(11.72, 26.50, -36.39)
CIE-LCHlch(11.72, 45.01, 306.06°)
OKLaboklab(25.06% 0.0306 -0.1046)
OKLCHoklch(25.06% 0.109 286.3)
XYZxyz(2.3660, 1.3650, 8.1198)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211252 #435212
analogous
#122352 #211252 #411252
triadic
#211252 #522112 #125221
tetradic
#211252 #521223 #435212 #125241
square
#211252 #521223 #435212 #125241
split-complementary
#211252 #524112 #235212
monochromatic
#0A0619 #0D0720 #211252 #351D84 #4928B6

Accessibility & contrast

On white

16.50
#211252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#211252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211252
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211252#FFFFFF#000000##FFFFFF
##2112521.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#0C2330
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #211252;
/* rgb */ color: rgb(33, 18, 82);
/* oklch */ color: oklch(25.1% 0.109 286.3);
Tailwind
colors: {
  custom: {
    50: '#635183',
    500: '#211252',
    950: '#000000',
  },
}
SCSS
$custom: #211252;
$custom-light: #635183;
$custom-dark: #000000;
JSON
{
  "hex": "#211252",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 254.063,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25063,
    "c": 0.10904,
    "h": 286.3
  },
  "luminance": 0.01365
}

Semantic roles & 50–950 ramp

primary
#211252
secondary
#778B35
accent
#E741C0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #211252

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

Preview Lab → · Contrast checker → · Palette generator →

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