#212988#212988

#212988 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.155 H 271.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#212988
RGBrgb(33, 41, 136)
HSLhsl(235, 61%, 33%)
HSVhsv(235, 76%, 53%)
CMYKcmyk(75.7%, 69.9%, 0%, 46.7%)
CIE-LABlab(22.61, 31.15, -53.73)
CIE-LCHlch(22.61, 62.11, 300.10°)
OKLaboklab(34.55% 0.0039 -0.1554)
OKLCHoklch(34.55% 0.155 271.4)
XYZxyz(5.8626, 3.6862, 23.6903)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212988 #888021
analogous
#215C88 #212988 #4C2188
triadic
#212988 #882129 #298821
tetradic
#212988 #88215C #888021 #21884C
square
#212988 #88215C #888021 #21884C
split-complementary
#212988 #884C21 #5C8821
monochromatic
#090B25 #151A57 #212988 #2D38B9 #4F59D4

Accessibility & contrast

On white

12.09
#212988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212988
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212988#FFFFFF#000000##FFFFFF
##2129881.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212988;
/* rgb */ color: rgb(33, 41, 136);
/* oklch */ color: oklch(34.6% 0.155 271.4);
Tailwind
colors: {
  custom: {
    50: '#6d63ac',
    500: '#212988',
    950: '#000000',
  },
}
SCSS
$custom: #212988;
$custom-light: #6d63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212988",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 235.34,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34554,
    "c": 0.15547,
    "h": 271.4
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#212988
secondary
#B8AF4D
accent
#D844E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212988

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

Preview Lab → · Contrast checker → · Palette generator →

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