#212D75#212D75

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

Color values

HEX#212D75
RGBrgb(33, 45, 117)
HSLhsl(231, 56%, 29%)
HSVhsv(231, 72%, 46%)
CMYKcmyk(71.8%, 61.5%, 0%, 54.1%)
CIE-LABlab(21.89, 21.20, -42.89)
CIE-LCHlch(21.89, 47.84, 296.30°)
OKLaboklab(33.49% 0.002 -0.1236)
OKLCHoklch(33.49% 0.124 270.9)
XYZxyz(4.7754, 3.4840, 17.2470)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D75 #756921
analogous
#215775 #212D75 #3F2175
triadic
#212D75 #75212D #2D7521
tetradic
#212D75 #752157 #756921 #21753F
square
#212D75 #752157 #756921 #21753F
split-complementary
#212D75 #753F21 #577521
monochromatic
#070918 #141B45 #212D75 #2E3FA5 #4659CB

Accessibility & contrast

On white

12.38
#212D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212D75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D75
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D75#FFFFFF#000000##FFFFFF
##212D751.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212d75;
/* rgb */ color: rgb(33, 45, 117);
/* oklch */ color: oklch(33.5% 0.124 270.9);
Tailwind
colors: {
  custom: {
    50: '#68659d',
    500: '#212d75',
    950: '#000000',
  },
}
SCSS
$custom: #212d75;
$custom-light: #68659d;
$custom-dark: #000000;
JSON
{
  "hex": "#212d75",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 117
  },
  "hsl": {
    "h": 231.429,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33485,
    "c": 0.12365,
    "h": 270.9
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#212D75
secondary
#A89B4A
accent
#CA49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212D75

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

Preview Lab → · Contrast checker → · Palette generator →

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