#212B8A#212B8A

#212B8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.156 H 270.9°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#212B8A
RGBrgb(33, 43, 138)
HSLhsl(234, 61%, 34%)
HSVhsv(234, 76%, 54%)
CMYKcmyk(76.1%, 68.8%, 0%, 45.9%)
CIE-LABlab(23.29, 30.59, -53.86)
CIE-LCHlch(23.29, 61.94, 299.59°)
OKLaboklab(35.11% 0.0025 -0.1558)
OKLCHoklch(35.11% 0.156 270.9)
XYZxyz(6.0770, 3.8854, 24.4695)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B8A #8A8021
analogous
#215F8A #212B8A #4B218A
triadic
#212B8A #8A212B #2B8A21
tetradic
#212B8A #8A215F #8A8021 #218A4B
square
#212B8A #8A215F #8A8021 #218A4B
split-complementary
#212B8A #8A4B21 #5F8A21
monochromatic
#090C27 #151C59 #212B8A #2D3ABB #505DD5

Accessibility & contrast

On white

11.82
#212B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B8A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B8A#FFFFFF#000000##FFFFFF
##212B8A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212b8a;
/* rgb */ color: rgb(33, 43, 138);
/* oklch */ color: oklch(35.1% 0.156 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e64ad',
    500: '#212b8a',
    950: '#000000',
  },
}
SCSS
$custom: #212b8a;
$custom-light: #6e64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#212b8a",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 234.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3511,
    "c": 0.1558,
    "h": 270.9
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#212B8A
secondary
#B9AE4E
accent
#D543E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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