#212998#212998

#212998 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.176 H 270.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#212998
RGBrgb(33, 41, 152)
HSLhsl(236, 64%, 36%)
HSVhsv(236, 78%, 60%)
CMYKcmyk(78.3%, 73%, 0%, 40.4%)
CIE-LABlab(24.24, 36.97, -60.95)
CIE-LCHlch(24.24, 71.29, 301.24°)
OKLaboklab(36.23% 0.0019 -0.1765)
OKLCHoklch(36.23% 0.176 270.6)
XYZxyz(7.0857, 4.1754, 30.1322)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212998 #989021
analogous
#216598 #212998 #552198
triadic
#212998 #982129 #299821
tetradic
#212998 #982165 #989021 #219855
square
#212998 #982165 #989021 #219855
split-complementary
#212998 #985521 #659821
monochromatic
#0B0E33 #161B66 #212998 #2C37CA #5961DB

Accessibility & contrast

On white

11.44
#212998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212998
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212998#FFFFFF#000000##FFFFFF
##2129981.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212998;
/* rgb */ color: rgb(33, 41, 152);
/* oklch */ color: oklch(36.2% 0.176 270.6);
Tailwind
colors: {
  custom: {
    50: '#7263b7',
    500: '#212998',
    950: '#000000',
  },
}
SCSS
$custom: #212998;
$custom-light: #7263b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212998",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 235.966,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36228,
    "c": 0.17648,
    "h": 270.6
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

primary
#212998
secondary
#BFB856
accent
#DC40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212998

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

Preview Lab → · Contrast checker → · Palette generator →

#212998 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva