#212895#212895

#212895 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.174 H 270.9°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#212895
RGBrgb(33, 40, 149)
HSLhsl(236, 64%, 36%)
HSVhsv(236, 78%, 58%)
CMYKcmyk(77.9%, 73.2%, 0%, 41.6%)
CIE-LABlab(23.70, 36.52, -59.99)
CIE-LCHlch(23.70, 70.23, 301.33°)
OKLaboklab(35.75% 0.0028 -0.1737)
OKLCHoklch(35.75% 0.174 270.9)
XYZxyz(6.8090, 4.0101, 28.8431)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212895 #958E21
analogous
#216295 #212895 #542195
triadic
#212895 #952128 #289521
tetradic
#212895 #952162 #958E21 #219554
square
#212895 #952162 #958E21 #219554
split-complementary
#212895 #955421 #629521
monochromatic
#0B0D31 #161B63 #212895 #2C35C7 #575FDA

Accessibility & contrast

On white

11.65
#212895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212895
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212895#FFFFFF#000000##FFFFFF
##2128951.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212895;
/* rgb */ color: rgb(33, 40, 149);
/* oklch */ color: oklch(35.7% 0.174 270.9);
Tailwind
colors: {
  custom: {
    50: '#7163b5',
    500: '#212895',
    950: '#000000',
  },
}
SCSS
$custom: #212895;
$custom-light: #7163b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212895",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 236.379,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35747,
    "c": 0.1737,
    "h": 270.9
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#212895
secondary
#BEB754
accent
#DD41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212895

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

Preview Lab → · Contrast checker → · Palette generator →

#212895 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva