#212A77#212A77

#212A77 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.131 H 272.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#212A77
RGBrgb(33, 42, 119)
HSLhsl(234, 57%, 30%)
HSVhsv(234, 72%, 47%)
CMYKcmyk(72.3%, 64.7%, 0%, 53.3%)
CIE-LABlab(21.25, 24.06, -45.21)
CIE-LCHlch(21.25, 51.21, 298.02°)
OKLaboklab(33.07% 0.0045 -0.1305)
OKLCHoklch(33.07% 0.131 272)
XYZxyz(4.7838, 3.3107, 17.8361)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A77 #776E21
analogous
#215577 #212A77 #432177
triadic
#212A77 #77212A #2A7721
tetradic
#212A77 #772155 #776E21 #217743
square
#212A77 #772155 #776E21 #217743
split-complementary
#212A77 #774321 #557721
monochromatic
#070818 #141947 #212A77 #2E3BA7 #4755CC

Accessibility & contrast

On white

12.63
#212A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#212A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A77
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A77#FFFFFF#000000##FFFFFF
##212A771.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212a77;
/* rgb */ color: rgb(33, 42, 119);
/* oklch */ color: oklch(33.1% 0.131 272.0);
Tailwind
colors: {
  custom: {
    50: '#69639f',
    500: '#212a77',
    950: '#000000',
  },
}
SCSS
$custom: #212a77;
$custom-light: #69639f;
$custom-dark: #000000;
JSON
{
  "hex": "#212a77",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 233.721,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33067,
    "c": 0.13055,
    "h": 272
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#212A77
secondary
#AAA04A
accent
#D048E0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212A77

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

Preview Lab → · Contrast checker → · Palette generator →

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