#212A93#212A93

#212A93 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.169 H 270.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#212A93
RGBrgb(33, 42, 147)
HSLhsl(235, 63%, 35%)
HSVhsv(235, 78%, 58%)
CMYKcmyk(77.6%, 71.4%, 0%, 42.4%)
CIE-LABlab(23.95, 34.55, -58.35)
CIE-LCHlch(23.95, 67.81, 300.63°)
OKLaboklab(35.86% 0.0021 -0.1689)
OKLCHoklch(35.86% 0.169 270.7)
XYZxyz(6.7198, 4.0851, 28.0325)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A93 #938A21
analogous
#216393 #212A93 #512193
triadic
#212A93 #93212A #2A9321
tetradic
#212A93 #932163 #938A21 #219351
square
#212A93 #932163 #938A21 #219351
split-complementary
#212A93 #935121 #639321
monochromatic
#0B0D2F #161C61 #212A93 #2C38C5 #5560D9

Accessibility & contrast

On white

11.56
#212A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A93
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A93#FFFFFF#000000##FFFFFF
##212A931.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212a93;
/* rgb */ color: rgb(33, 42, 147);
/* oklch */ color: oklch(35.9% 0.169 270.7);
Tailwind
colors: {
  custom: {
    50: '#7064b4',
    500: '#212a93',
    950: '#000000',
  },
}
SCSS
$custom: #212a93;
$custom-light: #7064b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212a93",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 235.263,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35862,
    "c": 0.16892,
    "h": 270.7
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#212A93
secondary
#BDB453
accent
#D941E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A93

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

Preview Lab → · Contrast checker → · Palette generator →

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