#212251#212251

#212251 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.084 H 278.6°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#212251
RGBrgb(33, 34, 81)
HSLhsl(239, 42%, 22%)
HSVhsv(239, 59%, 32%)
CMYKcmyk(59.3%, 58%, 0%, 68.2%)
CIE-LABlab(15.81, 15.17, -29.07)
CIE-LCHlch(15.81, 32.79, 297.55°)
OKLaboklab(28.02% 0.0125 -0.0831)
OKLCHoklch(28.02% 0.084 278.6)
XYZxyz(2.6840, 2.0613, 8.0394)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212251 #515021
analogous
#213A51 #212251 #382151
triadic
#212251 #512122 #225121
tetradic
#212251 #51213A #515021 #215138
square
#212251 #51213A #515021 #215138
split-complementary
#212251 #513821 #3A5121
monochromatic
#090916 #0F1026 #212251 #33347C #4447A8

Accessibility & contrast

On white

14.87
#212251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#212251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212251
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212251#FFFFFF#000000##FFFFFF
##2122511.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082953
Deuteranopia (green-blind)
#022550
Tritanopia (blue-blind)
#0A2D35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #212251;
/* rgb */ color: rgb(33, 34, 81);
/* oklch */ color: oklch(28.0% 0.084 278.6);
Tailwind
colors: {
  custom: {
    50: '#615d82',
    500: '#212251',
    950: '#000000',
  },
}
SCSS
$custom: #212251;
$custom-light: #615d82;
$custom-dark: #000000;
JSON
{
  "hex": "#212251",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 81
  },
  "hsl": {
    "h": 238.75,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28019,
    "c": 0.08404,
    "h": 278.6
  },
  "luminance": 0.02061
}

Semantic roles & 50–950 ramp

primary
#212251
secondary
#858449
accent
#CF56D2
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #212251

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

Preview Lab → · Contrast checker → · Palette generator →

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