#212894#212894

#212894 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.172 H 271.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#212894
RGBrgb(33, 40, 148)
HSLhsl(236, 64%, 35%)
HSVhsv(236, 78%, 58%)
CMYKcmyk(77.7%, 73%, 0%, 42%)
CIE-LABlab(23.60, 36.16, -59.55)
CIE-LCHlch(23.60, 69.67, 301.27°)
OKLaboklab(35.64% 0.003 -0.1724)
OKLCHoklch(35.64% 0.172 271)
XYZxyz(6.7295, 3.9783, 28.4245)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212894 #948D21
analogous
#216194 #212894 #532194
triadic
#212894 #942128 #289421
tetradic
#212894 #942161 #948D21 #219453
square
#212894 #942161 #948D21 #219453
split-complementary
#212894 #945321 #619421
monochromatic
#0B0D30 #161A62 #212894 #2C36C6 #565ED9

Accessibility & contrast

On white

11.69
#212894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212894
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212894#FFFFFF#000000##FFFFFF
##2128941.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212894;
/* rgb */ color: rgb(33, 40, 148);
/* oklch */ color: oklch(35.6% 0.172 271.0);
Tailwind
colors: {
  custom: {
    50: '#7163b5',
    500: '#212894',
    950: '#000000',
  },
}
SCSS
$custom: #212894;
$custom-light: #7163b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212894",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 236.348,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3564,
    "c": 0.17242,
    "h": 271
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#212894
secondary
#BDB754
accent
#DC41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212894

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

Preview Lab → · Contrast checker → · Palette generator →

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