#212B7A#212B7A

#212B7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.134 H 271.5°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#212B7A
RGBrgb(33, 43, 122)
HSLhsl(233, 57%, 30%)
HSVhsv(233, 73%, 48%)
CMYKcmyk(73%, 64.8%, 0%, 52.2%)
CIE-LABlab(21.78, 24.52, -46.25)
CIE-LCHlch(21.78, 52.35, 297.93°)
OKLaboklab(33.55% 0.0036 -0.1335)
OKLCHoklch(33.55% 0.134 271.5)
XYZxyz(5.0027, 3.4557, 18.8120)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B7A #7A7021
analogous
#21587A #212B7A #43217A
triadic
#212B7A #7A212B #2B7A21
tetradic
#212B7A #7A2158 #7A7021 #217A43
square
#212B7A #7A2158 #7A7021 #217A43
split-complementary
#212B7A #7A4321 #587A21
monochromatic
#07091A #141A4A #212B7A #2E3CAA #4857CD

Accessibility & contrast

On white

12.42
#212B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B7A
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B7A#FFFFFF#000000##FFFFFF
##212B7A1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212b7a;
/* rgb */ color: rgb(33, 43, 122);
/* oklch */ color: oklch(33.5% 0.134 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a64a1',
    500: '#212b7a',
    950: '#000000',
  },
}
SCSS
$custom: #212b7a;
$custom-light: #6a64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#212b7a",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 233.258,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33546,
    "c": 0.13355,
    "h": 271.5
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#212B7A
secondary
#ADA24A
accent
#CF47E1
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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