#212A94#212A94

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

Color values

HEX#212A94
RGBrgb(33, 42, 148)
HSLhsl(235, 64%, 35%)
HSVhsv(235, 78%, 58%)
CMYKcmyk(77.7%, 71.6%, 0%, 42%)
CIE-LABlab(24.05, 34.91, -58.80)
CIE-LCHlch(24.05, 68.38, 300.70°)
OKLaboklab(35.97% 0.002 -0.1702)
OKLCHoklch(35.97% 0.17 270.7)
XYZxyz(6.7986, 4.1166, 28.4475)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A94 #948B21
analogous
#216494 #212A94 #512194
triadic
#212A94 #94212A #2A9421
tetradic
#212A94 #942164 #948B21 #219451
square
#212A94 #942164 #948B21 #219451
split-complementary
#212A94 #945121 #649421
monochromatic
#0B0E30 #161C62 #212A94 #2C38C6 #5660D9

Accessibility & contrast

On white

11.52
#212A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212A94
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A94#FFFFFF#000000##FFFFFF
##212A941.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212a94;
/* rgb */ color: rgb(33, 42, 148);
/* oklch */ color: oklch(36.0% 0.170 270.7);
Tailwind
colors: {
  custom: {
    50: '#7064b5',
    500: '#212a94',
    950: '#000000',
  },
}
SCSS
$custom: #212a94;
$custom-light: #7064b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212a94",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 235.304,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35967,
    "c": 0.17022,
    "h": 270.7
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#212A94
secondary
#BDB554
accent
#DA41E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A94

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

Preview Lab → · Contrast checker → · Palette generator →

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