#211257#211257

#211257 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.116 H 284.7°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#211257
RGBrgb(33, 18, 87)
HSLhsl(253, 66%, 21%)
HSVhsv(253, 79%, 34%)
CMYKcmyk(62.1%, 79.3%, 0%, 65.9%)
CIE-LABlab(12.25, 28.19, -38.93)
CIE-LCHlch(12.25, 48.06, 305.91°)
OKLaboklab(25.59% 0.0294 -0.1121)
OKLCHoklch(25.59% 0.116 284.7)
XYZxyz(2.5633, 1.4439, 9.1586)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211257 #485712
analogous
#122657 #211257 #431257
triadic
#211257 #572112 #125721
tetradic
#211257 #571226 #485712 #125743
square
#211257 #571226 #485712 #125743
split-complementary
#211257 #574312 #265712
monochromatic
#0A0519 #0E0824 #211257 #341C8A #4727BC

Accessibility & contrast

On white

16.29
#211257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#211257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211257
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211257#FFFFFF#000000##FFFFFF
##2112571.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001E56
Tritanopia (blue-blind)
#052533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #211257;
/* rgb */ color: rgb(33, 18, 87);
/* oklch */ color: oklch(25.6% 0.116 284.7);
Tailwind
colors: {
  custom: {
    50: '#645187',
    500: '#211257',
    950: '#000000',
  },
}
SCSS
$custom: #211257;
$custom-light: #645187;
$custom-dark: #000000;
JSON
{
  "hex": "#211257",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 253.043,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25594,
    "c": 0.11588,
    "h": 284.7
  },
  "luminance": 0.01444
}

Semantic roles & 50–950 ramp

primary
#211257
secondary
#7C9035
accent
#E93FC4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #211257

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

Preview Lab → · Contrast checker → · Palette generator →

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