#212B8F#212B8F

#212B8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.163 H 270.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#212B8F
RGBrgb(33, 43, 143)
HSLhsl(235, 63%, 35%)
HSVhsv(235, 77%, 56%)
CMYKcmyk(76.9%, 69.9%, 0%, 43.9%)
CIE-LABlab(23.78, 32.44, -56.15)
CIE-LCHlch(23.78, 64.85, 300.01°)
OKLaboklab(35.62% 0.002 -0.1625)
OKLCHoklch(35.62% 0.163 270.7)
XYZxyz(6.4473, 4.0336, 26.4200)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B8F #8F8521
analogous
#21628F #212B8F #4E218F
triadic
#212B8F #8F212B #2B8F21
tetradic
#212B8F #8F2162 #8F8521 #218F4E
square
#212B8F #8F2162 #8F8521 #218F4E
split-complementary
#212B8F #8F4E21 #628F21
monochromatic
#0A0D2C #161C5D #212B8F #2C3AC1 #535FD7

Accessibility & contrast

On white

11.62
#212B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#212B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B8F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B8F#FFFFFF#000000##FFFFFF
##212B8F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212b8f;
/* rgb */ color: rgb(33, 43, 143);
/* oklch */ color: oklch(35.6% 0.163 270.7);
Tailwind
colors: {
  custom: {
    50: '#6f64b1',
    500: '#212b8f',
    950: '#000000',
  },
}
SCSS
$custom: #212b8f;
$custom-light: #6f64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#212b8f",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 234.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35618,
    "c": 0.16251,
    "h": 270.7
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#212B8F
secondary
#BBB151
accent
#D742E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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