#212D93#212D93

#212D93 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.166 H 270.2°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#212D93
RGBrgb(33, 45, 147)
HSLhsl(234, 63%, 35%)
HSVhsv(234, 78%, 58%)
CMYKcmyk(77.6%, 69.4%, 0%, 42.4%)
CIE-LABlab(24.66, 32.62, -57.19)
CIE-LCHlch(24.66, 65.84, 299.70°)
OKLaboklab(36.37% 0.0005 -0.1655)
OKLCHoklch(36.37% 0.166 270.2)
XYZxyz(6.8302, 4.3059, 28.0693)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D93 #938721
analogous
#216693 #212D93 #4E2193
triadic
#212D93 #93212D #2D9321
tetradic
#212D93 #932166 #938721 #21934E
square
#212D93 #932166 #938721 #21934E
split-complementary
#212D93 #934E21 #669321
monochromatic
#0B0E2F #161E61 #212D93 #2C3CC5 #5563D9

Accessibility & contrast

On white

11.28
#212D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#212D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D93
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D93#FFFFFF#000000##FFFFFF
##212D931.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003591
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212d93;
/* rgb */ color: rgb(33, 45, 147);
/* oklch */ color: oklch(36.4% 0.166 270.2);
Tailwind
colors: {
  custom: {
    50: '#7066b4',
    500: '#212d93',
    950: '#000000',
  },
}
SCSS
$custom: #212d93;
$custom-light: #7066b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212d93",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 147
  },
  "hsl": {
    "h": 233.684,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36374,
    "c": 0.16551,
    "h": 270.2
  },
  "luminance": 0.04307
}

Semantic roles & 50–950 ramp

primary
#212D93
secondary
#BDB253
accent
#D541E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212D93

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

Preview Lab → · Contrast checker → · Palette generator →

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