#212B8E#212B8E

#212B8E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.161 H 270.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#212B8E
RGBrgb(33, 43, 142)
HSLhsl(234, 62%, 34%)
HSVhsv(234, 77%, 56%)
CMYKcmyk(76.8%, 69.7%, 0%, 44.3%)
CIE-LABlab(23.68, 32.07, -55.70)
CIE-LCHlch(23.68, 64.27, 299.93°)
OKLaboklab(35.52% 0.0021 -0.1612)
OKLCHoklch(35.52% 0.161 270.8)
XYZxyz(6.3719, 4.0034, 26.0229)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B8E #8E8421
analogous
#21628E #212B8E #4D218E
triadic
#212B8E #8E212B #2B8E21
tetradic
#212B8E #8E2162 #8E8421 #218E4D
square
#212B8E #8E2162 #8E8421 #218E4D
split-complementary
#212B8E #8E4D21 #628E21
monochromatic
#0A0D2B #151C5C #212B8E #2D3AC0 #525FD7

Accessibility & contrast

On white

11.66
#212B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B8E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B8E#FFFFFF#000000##FFFFFF
##212B8E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212b8e;
/* rgb */ color: rgb(33, 43, 142);
/* oklch */ color: oklch(35.5% 0.161 270.8);
Tailwind
colors: {
  custom: {
    50: '#6f64b0',
    500: '#212b8e',
    950: '#000000',
  },
}
SCSS
$custom: #212b8e;
$custom-light: #6f64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#212b8e",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 234.495,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35516,
    "c": 0.16117,
    "h": 270.8
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#212B8E
secondary
#BAB150
accent
#D642E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #212B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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