#212FA9#212FA9

#212FA9 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.192 H 269.1°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#212FA9
RGBrgb(33, 47, 169)
HSLhsl(234, 67%, 40%)
HSVhsv(234, 80%, 66%)
CMYKcmyk(80.5%, 72.2%, 0%, 33.7%)
CIE-LABlab(27.35, 39.36, -66.16)
CIE-LCHlch(27.35, 76.98, 300.75°)
OKLaboklab(38.99% -0.0029 -0.1916)
OKLCHoklch(38.99% 0.192 269.1)
XYZxyz(8.8027, 5.2199, 38.0720)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212FA9 #A99B21
analogous
#2173A9 #212FA9 #5721A9
triadic
#212FA9 #A9212F #2FA921
tetradic
#212FA9 #A92173 #A99B21 #21A957
square
#212FA9 #A92173 #A99B21 #21A957
split-complementary
#212FA9 #A95721 #73A921
monochromatic
#0D1343 #172176 #212FA9 #3142D7 #6471E1

Accessibility & contrast

On white

10.27
#212FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#212FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212FA9
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212FA9#FFFFFF#000000##FFFFFF
##212FA91.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#003AA7
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #212fa9;
/* rgb */ color: rgb(33, 47, 169);
/* oklch */ color: oklch(39.0% 0.192 269.1);
Tailwind
colors: {
  custom: {
    50: '#7568c4',
    500: '#212fa9',
    950: '#000000',
  },
}
SCSS
$custom: #212fa9;
$custom-light: #7568c4;
$custom-dark: #000000;
JSON
{
  "hex": "#212fa9",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 233.824,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38991,
    "c": 0.19167,
    "h": 269.1
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#212FA9
secondary
#C6BB60
accent
#D83EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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