#212F89#212F89

#212F89 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.150 H 270.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#212F89
RGBrgb(33, 47, 137)
HSLhsl(232, 61%, 33%)
HSVhsv(232, 76%, 54%)
CMYKcmyk(75.9%, 65.7%, 0%, 46.3%)
CIE-LABlab(24.20, 27.54, -51.74)
CIE-LCHlch(24.20, 58.61, 298.02°)
OKLaboklab(35.75% 0 -0.1496)
OKLCHoklch(35.75% 0.15 270)
XYZxyz(6.1575, 4.1619, 24.1409)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F89 #897B21
analogous
#216389 #212F89 #472189
triadic
#212F89 #89212F #2F8921
tetradic
#212F89 #892163 #897B21 #218947
square
#212F89 #892163 #897B21 #218947
split-complementary
#212F89 #894721 #638921
monochromatic
#090D26 #151E58 #212F89 #2D40BA #5062D5

Accessibility & contrast

On white

11.46
#212F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#212F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F89
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F89#FFFFFF#000000##FFFFFF
##212F891.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212f89;
/* rgb */ color: rgb(33, 47, 137);
/* oklch */ color: oklch(35.7% 0.150 270.0);
Tailwind
colors: {
  custom: {
    50: '#6d67ac',
    500: '#212f89',
    950: '#000000',
  },
}
SCSS
$custom: #212f89;
$custom-light: #6d67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212f89",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 231.923,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35747,
    "c": 0.14956,
    "h": 270
  },
  "luminance": 0.04163
}

Semantic roles & 50–950 ramp

primary
#212F89
secondary
#B8AA4E
accent
#CF44E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212F89

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

Preview Lab → · Contrast checker → · Palette generator →

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