#212B9C#212B9C

#212B9C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.179 H 270.2°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#212B9C
RGBrgb(33, 43, 156)
HSLhsl(235, 65%, 37%)
HSVhsv(235, 79%, 61%)
CMYKcmyk(78.8%, 72.4%, 0%, 38.8%)
CIE-LABlab(25.11, 37.17, -61.97)
CIE-LCHlch(25.11, 72.26, 300.96°)
OKLaboklab(36.97% 0.0005 -0.1795)
OKLCHoklch(36.97% 0.179 270.2)
XYZxyz(7.4898, 4.4506, 31.9103)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B9C #9C9221
analogous
#21699C #212B9C #55219C
triadic
#212B9C #9C212B #2B9C21
tetradic
#212B9C #9C2169 #9C9221 #219C55
square
#212B9C #9C2169 #9C9221 #219C55
split-complementary
#212B9C #9C5521 #699C21
monochromatic
#0C0F37 #161D69 #212B9C #2C39CF #5B66DC

Accessibility & contrast

On white

11.11
#212B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#212B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B9C
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B9C#FFFFFF#000000##FFFFFF
##212B9C1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212b9c;
/* rgb */ color: rgb(33, 43, 156);
/* oklch */ color: oklch(37.0% 0.179 270.2);
Tailwind
colors: {
  custom: {
    50: '#7265ba',
    500: '#212b9c',
    950: '#000000',
  },
}
SCSS
$custom: #212b9c;
$custom-light: #7265ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212b9c",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 235.122,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36974,
    "c": 0.17946,
    "h": 270.2
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#212B9C
secondary
#C1B858
accent
#DA40E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #212B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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