#211172#211172

#211172 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.6% C 0.152 H 278.2°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#211172
RGBrgb(33, 17, 114)
HSLhsl(250, 74%, 26%)
HSVhsv(250, 85%, 45%)
CMYKcmyk(71.1%, 85.1%, 0%, 55.3%)
CIE-LABlab(15.16, 37.60, -52.00)
CIE-LCHlch(15.16, 64.17, 305.87°)
OKLaboklab(28.55% 0.0218 -0.1502)
OKLCHoklch(28.55% 0.152 278.2)
XYZxyz(3.8639, 1.9388, 16.0869)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211172 #627211
analogous
#113172 #211172 #511172
triadic
#211172 #722111 #117221
tetradic
#211172 #721131 #627211 #117251
square
#211172 #721131 #627211 #117251
split-complementary
#211172 #725111 #317211
monochromatic
#08041B #12093D #211172 #3019A7 #4021DD

Accessibility & contrast

On white

15.13
#211172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#211172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211172
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211172#FFFFFF#000000##FFFFFF
##2111721.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #211172;
/* rgb */ color: rgb(33, 17, 114);
/* oklch */ color: oklch(28.6% 0.152 278.2);
Tailwind
colors: {
  custom: {
    50: '#6a539c',
    500: '#211172',
    950: '#000000',
  },
}
SCSS
$custom: #211172;
$custom-light: #6a539c;
$custom-dark: #000000;
JSON
{
  "hex": "#211172",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 249.897,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28554,
    "c": 0.15178,
    "h": 278.2
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#211172
secondary
#96A936
accent
#F137D2
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #211172

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

Preview Lab → · Contrast checker → · Palette generator →

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