#212CAA#212CAA

#212CAA is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.196 H 269.5°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#212CAA
RGBrgb(33, 44, 170)
HSLhsl(235, 67%, 40%)
HSVhsv(235, 81%, 67%)
CMYKcmyk(80.6%, 74.1%, 0%, 33.3%)
CIE-LABlab(26.81, 41.51, -67.65)
CIE-LCHlch(26.81, 79.38, 301.53°)
OKLaboklab(38.63% -0.0018 -0.196)
OKLCHoklch(38.63% 0.196 269.5)
XYZxyz(8.7811, 5.0260, 38.5297)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212CAA #AA9F21
analogous
#2171AA #212CAA #5A21AA
triadic
#212CAA #AA212C #2CAA21
tetradic
#212CAA #AA2171 #AA9F21 #21AA5A
square
#212CAA #AA2171 #AA9F21 #21AA5A
split-complementary
#212CAA #AA5A21 #71AA21
monochromatic
#0D1143 #171F77 #212CAA #313ED7 #646EE1

Accessibility & contrast

On white

10.47
#212CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#212CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212CAA
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212CAA#FFFFFF#000000##FFFFFF
##212CAA1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#0039A8
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212caa;
/* rgb */ color: rgb(33, 44, 170);
/* oklch */ color: oklch(38.6% 0.196 269.5);
Tailwind
colors: {
  custom: {
    50: '#7666c5',
    500: '#212caa',
    950: '#000000',
  },
}
SCSS
$custom: #212caa;
$custom-light: #7666c5;
$custom-dark: #000000;
JSON
{
  "hex": "#212caa",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 235.182,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38633,
    "c": 0.19601,
    "h": 269.5
  },
  "luminance": 0.05027
}

Semantic roles & 50–950 ramp

primary
#212CAA
secondary
#C6BE61
accent
#DC3DEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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