#212B95#212B95

#212B95 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.170 H 270.4°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#212B95
RGBrgb(33, 43, 149)
HSLhsl(235, 64%, 36%)
HSVhsv(235, 78%, 58%)
CMYKcmyk(77.9%, 71.1%, 0%, 41.6%)
CIE-LABlab(24.39, 34.64, -58.87)
CIE-LCHlch(24.39, 68.30, 300.48°)
OKLaboklab(36.24% 0.0013 -0.1704)
OKLCHoklch(36.24% 0.17 270.4)
XYZxyz(6.9140, 4.2203, 28.8781)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B95 #958B21
analogous
#216595 #212B95 #512195
triadic
#212B95 #95212B #2B9521
tetradic
#212B95 #952165 #958B21 #219551
square
#212B95 #952165 #958B21 #219551
split-complementary
#212B95 #955121 #659521
monochromatic
#0B0E31 #161D63 #212B95 #2C39C7 #5762DA

Accessibility & contrast

On white

11.39
#212B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B95
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B95#FFFFFF#000000##FFFFFF
##212B951.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212b95;
/* rgb */ color: rgb(33, 43, 149);
/* oklch */ color: oklch(36.2% 0.170 270.4);
Tailwind
colors: {
  custom: {
    50: '#7165b5',
    500: '#212b95',
    950: '#000000',
  },
}
SCSS
$custom: #212b95;
$custom-light: #7165b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212b95",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 234.828,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36238,
    "c": 0.17042,
    "h": 270.4
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#212B95
secondary
#BEB554
accent
#D841E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212B95

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

Preview Lab → · Contrast checker → · Palette generator →

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