#212C83#212C83

#212C83 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.145 H 270.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#212C83
RGBrgb(33, 44, 131)
HSLhsl(233, 60%, 32%)
HSVhsv(233, 75%, 51%)
CMYKcmyk(74.8%, 66.4%, 0%, 48.6%)
CIE-LABlab(22.87, 27.28, -50.16)
CIE-LCHlch(22.87, 57.10, 298.54°)
OKLaboklab(34.6% 0.0024 -0.145)
OKLCHoklch(34.6% 0.145 270.9)
XYZxyz(5.6232, 3.7628, 21.8983)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C83 #837821
analogous
#215D83 #212C83 #472183
triadic
#212C83 #83212C #2C8321
tetradic
#212C83 #83215D #837821 #218347
square
#212C83 #83215D #837821 #218347
split-complementary
#212C83 #834721 #5D8321
monochromatic
#080B21 #151C52 #212C83 #2D3CB4 #4C5BD2

Accessibility & contrast

On white

11.98
#212C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C83
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C83#FFFFFF#000000##FFFFFF
##212C831.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212c83;
/* rgb */ color: rgb(33, 44, 131);
/* oklch */ color: oklch(34.6% 0.145 270.9);
Tailwind
colors: {
  custom: {
    50: '#6c65a8',
    500: '#212c83',
    950: '#000000',
  },
}
SCSS
$custom: #212c83;
$custom-light: #6c65a8;
$custom-dark: #000000;
JSON
{
  "hex": "#212c83",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 233.265,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34601,
    "c": 0.14498,
    "h": 270.9
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#212C83
secondary
#B5A94B
accent
#D145E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #212C83

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

Preview Lab → · Contrast checker → · Palette generator →

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