#212D74#212D74

#212D74 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.122 H 270.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#212D74
RGBrgb(33, 45, 116)
HSLhsl(231, 56%, 29%)
HSVhsv(231, 72%, 45%)
CMYKcmyk(71.6%, 61.2%, 0%, 54.5%)
CIE-LABlab(21.80, 20.81, -42.39)
CIE-LCHlch(21.80, 47.22, 296.14°)
OKLaboklab(33.4% 0.002 -0.1222)
OKLCHoklch(33.4% 0.122 270.9)
XYZxyz(4.7169, 3.4606, 16.9390)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D74 #746821
analogous
#215774 #212D74 #3F2174
triadic
#212D74 #74212D #2D7421
tetradic
#212D74 #742157 #746821 #21743F
square
#212D74 #742157 #746821 #21743F
split-complementary
#212D74 #743F21 #577421
monochromatic
#070918 #131B44 #212D74 #2F3FA4 #4558CA

Accessibility & contrast

On white

12.41
#212D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D74
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D74#FFFFFF#000000##FFFFFF
##212D741.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212d74;
/* rgb */ color: rgb(33, 45, 116);
/* oklch */ color: oklch(33.4% 0.122 270.9);
Tailwind
colors: {
  custom: {
    50: '#68659d',
    500: '#212d74',
    950: '#000000',
  },
}
SCSS
$custom: #212d74;
$custom-light: #68659d;
$custom-dark: #000000;
JSON
{
  "hex": "#212d74",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 231.325,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33395,
    "c": 0.12218,
    "h": 270.9
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#212D74
secondary
#A79A49
accent
#C949DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212D74

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

Preview Lab → · Contrast checker → · Palette generator →

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