#212A90#212A90

#212A90 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.165 H 270.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#212A90
RGBrgb(33, 42, 144)
HSLhsl(235, 63%, 35%)
HSVhsv(235, 77%, 56%)
CMYKcmyk(77.1%, 70.8%, 0%, 43.5%)
CIE-LABlab(23.65, 33.45, -57.00)
CIE-LCHlch(23.65, 66.09, 300.41°)
OKLaboklab(35.55% 0.0025 -0.165)
OKLCHoklch(35.55% 0.165 270.9)
XYZxyz(6.4875, 3.9922, 26.8088)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A90 #908721
analogous
#216290 #212A90 #502190
triadic
#212A90 #90212A #2A9021
tetradic
#212A90 #902162 #908721 #219050
square
#212A90 #902162 #908721 #219050
split-complementary
#212A90 #905021 #629021
monochromatic
#0A0D2C #161B5E #212A90 #2C39C2 #545ED8

Accessibility & contrast

On white

11.68
#212A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A90
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A90#FFFFFF#000000##FFFFFF
##212A901.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212a90;
/* rgb */ color: rgb(33, 42, 144);
/* oklch */ color: oklch(35.5% 0.165 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f64b2',
    500: '#212a90',
    950: '#000000',
  },
}
SCSS
$custom: #212a90;
$custom-light: #6f64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212a90",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 235.135,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3555,
    "c": 0.16498,
    "h": 270.9
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#212A90
secondary
#BBB351
accent
#D842E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A90

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

Preview Lab → · Contrast checker → · Palette generator →

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