#212A80#212A80

#212A80 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.143 H 271.6°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#212A80
RGBrgb(33, 42, 128)
HSLhsl(234, 59%, 32%)
HSVhsv(234, 74%, 50%)
CMYKcmyk(74.2%, 67.2%, 0%, 49.8%)
CIE-LABlab(22.08, 27.49, -49.57)
CIE-LCHlch(22.08, 56.68, 299.01°)
OKLaboklab(33.93% 0.004 -0.1432)
OKLCHoklch(33.93% 0.143 271.6)
XYZxyz(5.3501, 3.5372, 20.8187)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A80 #807721
analogous
#215A80 #212A80 #482180
triadic
#212A80 #80212A #2A8021
tetradic
#212A80 #80215A #807721 #218048
square
#212A80 #80215A #807721 #218048
split-complementary
#212A80 #804821 #5A8021
monochromatic
#080A1F #141A4F #212A80 #2E3AB1 #4B58D1

Accessibility & contrast

On white

12.30
#212A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A80
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A80#FFFFFF#000000##FFFFFF
##212A801.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212a80;
/* rgb */ color: rgb(33, 42, 128);
/* oklch */ color: oklch(33.9% 0.143 271.6);
Tailwind
colors: {
  custom: {
    50: '#6b63a6',
    500: '#212a80',
    950: '#000000',
  },
}
SCSS
$custom: #212a80;
$custom-light: #6b63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212a80",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 234.316,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33933,
    "c": 0.1433,
    "h": 271.6
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#212A80
secondary
#B3A94A
accent
#D346E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #212A80

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

Preview Lab → · Contrast checker → · Palette generator →

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