#212D7C#212D7C

#212D7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.134 H 270.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#212D7C
RGBrgb(33, 45, 124)
HSLhsl(232, 58%, 31%)
HSVhsv(232, 73%, 49%)
CMYKcmyk(73.4%, 63.7%, 0%, 51.4%)
CIE-LABlab(22.50, 23.91, -46.35)
CIE-LCHlch(22.50, 52.16, 297.29°)
OKLaboklab(34.13% 0.0019 -0.1338)
OKLCHoklch(34.13% 0.134 270.8)
XYZxyz(5.2024, 3.6548, 19.4962)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D7C #7C7021
analogous
#215A7C #212D7C #42217C
triadic
#212D7C #7C212D #2D7C21
tetradic
#212D7C #7C215A #7C7021 #217C42
square
#212D7C #7C215A #7C7021 #217C42
split-complementary
#212D7C #7C4221 #5A7C21
monochromatic
#070A1B #141B4C #212D7C #2E3FAC #495ACF

Accessibility & contrast

On white

12.13
#212D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D7C
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D7C#FFFFFF#000000##FFFFFF
##212D7C1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212d7c;
/* rgb */ color: rgb(33, 45, 124);
/* oklch */ color: oklch(34.1% 0.134 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a65a3',
    500: '#212d7c',
    950: '#000000',
  },
}
SCSS
$custom: #212d7c;
$custom-light: #6a65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212d7c",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 232.088,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34127,
    "c": 0.13381,
    "h": 270.8
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#212D7C
secondary
#AFA24A
accent
#CD47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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