#212B87#212B87

#212B87 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.152 H 271.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#212B87
RGBrgb(33, 43, 135)
HSLhsl(234, 61%, 33%)
HSVhsv(234, 76%, 53%)
CMYKcmyk(75.6%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.00, 29.46, -52.46)
CIE-LCHlch(23.00, 60.17, 299.32°)
OKLaboklab(34.81% 0.0028 -0.1517)
OKLCHoklch(34.81% 0.152 271)
XYZxyz(5.8628, 3.7997, 23.3414)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B87 #877D21
analogous
#215E87 #212B87 #4A2187
triadic
#212B87 #87212B #2B8721
tetradic
#212B87 #87215E #877D21 #21874A
square
#212B87 #87215E #877D21 #21874A
split-complementary
#212B87 #874A21 #5E8721
monochromatic
#090C25 #151B56 #212B87 #2D3BB8 #4F5CD4

Accessibility & contrast

On white

11.93
#212B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B87
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B87#FFFFFF#000000##FFFFFF
##212B871.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212b87;
/* rgb */ color: rgb(33, 43, 135);
/* oklch */ color: oklch(34.8% 0.152 271.0);
Tailwind
colors: {
  custom: {
    50: '#6d64ab',
    500: '#212b87',
    950: '#000000',
  },
}
SCSS
$custom: #212b87;
$custom-light: #6d64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212b87",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 234.118,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3481,
    "c": 0.15173,
    "h": 271
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#212B87
secondary
#B7AD4D
accent
#D444E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212B87

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

Preview Lab → · Contrast checker → · Palette generator →

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