#211F52#211F52

#211F52 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.090 H 280.4°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#211F52
RGBrgb(33, 31, 82)
HSLhsl(242, 45%, 22%)
HSVhsv(242, 62%, 32%)
CMYKcmyk(59.8%, 62.2%, 0%, 67.8%)
CIE-LABlab(15.02, 17.71, -31.01)
CIE-LCHlch(15.02, 35.71, 299.73°)
OKLaboklab(27.46% 0.0163 -0.0888)
OKLCHoklch(27.46% 0.09 280.4)
XYZxyz(2.6397, 1.9123, 8.2110)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211F52 #50521F
analogous
#1F3752 #211F52 #3B1F52
triadic
#211F52 #52211F #1F5221
tetradic
#211F52 #521F37 #50521F #1F523B
square
#211F52 #521F37 #50521F #1F523B
split-complementary
#211F52 #523B1F #37521F
monochromatic
#090816 #0F0E26 #211F52 #33307E #4541AB

Accessibility & contrast

On white

15.19
#211F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#211F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211F52
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211F52#FFFFFF#000000##FFFFFF
##211F521.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#0A2B35
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #211f52;
/* rgb */ color: rgb(33, 31, 82);
/* oklch */ color: oklch(27.5% 0.090 280.4);
Tailwind
colors: {
  custom: {
    50: '#615a83',
    500: '#211f52',
    950: '#000000',
  },
}
SCSS
$custom: #211f52;
$custom-light: #615a83;
$custom-dark: #000000;
JSON
{
  "hex": "#211f52",
  "rgb": {
    "r": 33,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 242.353,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27459,
    "c": 0.09033,
    "h": 280.4
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#211F52
secondary
#848746
accent
#D553D0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040A
muted
#7A797C

Preview Lab

Preview with #211F52

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

Preview Lab → · Contrast checker → · Palette generator →

#211F52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva