#212B74#212B74

#212B74 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.125 H 271.7°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#212B74
RGBrgb(33, 43, 116)
HSLhsl(233, 56%, 29%)
HSVhsv(233, 72%, 45%)
CMYKcmyk(71.6%, 62.9%, 0%, 54.5%)
CIE-LABlab(21.25, 22.21, -43.29)
CIE-LCHlch(21.25, 48.65, 297.16°)
OKLaboklab(32.99% 0.0038 -0.1248)
OKLCHoklch(32.99% 0.125 271.7)
XYZxyz(4.6424, 3.3116, 16.9142)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B74 #746A21
analogous
#215574 #212B74 #412174
triadic
#212B74 #74212B #2B7421
tetradic
#212B74 #742155 #746A21 #217441
square
#212B74 #742155 #746A21 #217441
split-complementary
#212B74 #744121 #557421
monochromatic
#070918 #131944 #212B74 #2F3DA4 #4555CA

Accessibility & contrast

On white

12.63
#212B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#212B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B74
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B74#FFFFFF#000000##FFFFFF
##212B741.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212b74;
/* rgb */ color: rgb(33, 43, 116);
/* oklch */ color: oklch(33.0% 0.125 271.7);
Tailwind
colors: {
  custom: {
    50: '#68649d',
    500: '#212b74',
    950: '#000000',
  },
}
SCSS
$custom: #212b74;
$custom-light: #68649d;
$custom-dark: #000000;
JSON
{
  "hex": "#212b74",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 116
  },
  "hsl": {
    "h": 232.771,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32987,
    "c": 0.12487,
    "h": 271.7
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#212B74
secondary
#A79C49
accent
#CD49DF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212B74

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

Preview Lab → · Contrast checker → · Palette generator →

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