#212699#212699

#212699 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.181 H 271.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#212699
RGBrgb(33, 38, 153)
HSLhsl(238, 65%, 36%)
HSVhsv(238, 78%, 60%)
CMYKcmyk(78.4%, 75.2%, 0%, 40%)
CIE-LABlab(23.70, 39.14, -62.46)
CIE-LCHlch(23.70, 73.71, 302.07°)
OKLaboklab(35.87% 0.0031 -0.1808)
OKLCHoklch(35.87% 0.181 271)
XYZxyz(7.0681, 4.0087, 30.5321)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212699 #999421
analogous
#216299 #212699 #582199
triadic
#212699 #992126 #269921
tetradic
#212699 #992162 #999421 #219958
square
#212699 #992162 #999421 #219958
split-complementary
#212699 #995821 #629921
monochromatic
#0B0D34 #161967 #212699 #2C33CB #595FDB

Accessibility & contrast

On white

11.66
#212699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212699
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212699#FFFFFF#000000##FFFFFF
##2126991.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212699;
/* rgb */ color: rgb(33, 38, 153);
/* oklch */ color: oklch(35.9% 0.181 271.0);
Tailwind
colors: {
  custom: {
    50: '#7262b8',
    500: '#212699',
    950: '#000000',
  },
}
SCSS
$custom: #212699;
$custom-light: #7262b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212699",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 237.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.18088,
    "h": 271
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#212699
secondary
#BFBB56
accent
#E140E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #212699

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

Preview Lab → · Contrast checker → · Palette generator →

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