#212B98#212B98

#212B98 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.174 H 270.3°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#212B98
RGBrgb(33, 43, 152)
HSLhsl(235, 64%, 36%)
HSVhsv(235, 78%, 60%)
CMYKcmyk(78.3%, 71.7%, 0%, 40.4%)
CIE-LABlab(24.69, 35.73, -60.20)
CIE-LCHlch(24.69, 70.01, 300.69°)
OKLaboklab(36.55% 0.001 -0.1743)
OKLCHoklch(36.55% 0.174 270.3)
XYZxyz(7.1566, 4.3173, 30.1558)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B98 #988E21
analogous
#216798 #212B98 #532198
triadic
#212B98 #98212B #2B9821
tetradic
#212B98 #982167 #988E21 #219853
square
#212B98 #982167 #988E21 #219853
split-complementary
#212B98 #985321 #679821
monochromatic
#0B0F33 #161D66 #212B98 #2C39CA #5963DB

Accessibility & contrast

On white

11.27
#212B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#212B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B98
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B98#FFFFFF#000000##FFFFFF
##212B981.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212b98;
/* rgb */ color: rgb(33, 43, 152);
/* oklch */ color: oklch(36.6% 0.174 270.3);
Tailwind
colors: {
  custom: {
    50: '#7165b7',
    500: '#212b98',
    950: '#000000',
  },
}
SCSS
$custom: #212b98;
$custom-light: #7165b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212b98",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 234.958,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36552,
    "c": 0.17431,
    "h": 270.3
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#212B98
secondary
#BFB656
accent
#D940E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212B98

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

Preview Lab → · Contrast checker → · Palette generator →

#212B98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva