#212B99#212B99

#212B99 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.176 H 270.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#212B99
RGBrgb(33, 43, 153)
HSLhsl(235, 65%, 36%)
HSVhsv(235, 78%, 60%)
CMYKcmyk(78.4%, 71.9%, 0%, 40%)
CIE-LABlab(24.80, 36.09, -60.65)
CIE-LCHlch(24.80, 70.58, 300.76°)
OKLaboklab(36.66% 0.0009 -0.1756)
OKLCHoklch(36.66% 0.176 270.3)
XYZxyz(7.2389, 4.3502, 30.5890)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B99 #998F21
analogous
#216799 #212B99 #532199
triadic
#212B99 #99212B #2B9921
tetradic
#212B99 #992167 #998F21 #219953
square
#212B99 #992167 #998F21 #219953
split-complementary
#212B99 #995321 #679921
monochromatic
#0B0F34 #161D67 #212B99 #2C39CB #5964DB

Accessibility & contrast

On white

11.23
#212B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#212B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B99
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B99#FFFFFF#000000##FFFFFF
##212B991.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212b99;
/* rgb */ color: rgb(33, 43, 153);
/* oklch */ color: oklch(36.7% 0.176 270.3);
Tailwind
colors: {
  custom: {
    50: '#7265b8',
    500: '#212b99',
    950: '#000000',
  },
}
SCSS
$custom: #212b99;
$custom-light: #7265b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212b99",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 235,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36657,
    "c": 0.1756,
    "h": 270.3
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

primary
#212B99
secondary
#BFB756
accent
#DA40E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212B99

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

Preview Lab → · Contrast checker → · Palette generator →

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