#212064#212064

#212064 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.116 H 277.1°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#212064
RGBrgb(33, 32, 100)
HSLhsl(241, 52%, 26%)
HSVhsv(241, 68%, 39%)
CMYKcmyk(67%, 68%, 0%, 60.8%)
CIE-LABlab(16.87, 23.74, -40.03)
CIE-LCHlch(16.87, 46.54, 300.67°)
OKLaboklab(29.32% 0.0144 -0.1153)
OKLCHoklch(29.32% 0.116 277.1)
XYZxyz(3.4432, 2.2762, 12.3120)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212064 #636420
analogous
#204164 #212064 #432064
triadic
#212064 #642120 #206421
tetradic
#212064 #642041 #636420 #206443
square
#212064 #642041 #636420 #206443
split-complementary
#212064 #644320 #416420
monochromatic
#080717 #121136 #212064 #302F92 #403EC1

Accessibility & contrast

On white

14.43
#212064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#212064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212064
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212064#FFFFFF#000000##FFFFFF
##2120641.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212064;
/* rgb */ color: rgb(33, 32, 100);
/* oklch */ color: oklch(29.3% 0.116 277.1);
Tailwind
colors: {
  custom: {
    50: '#655b91',
    500: '#212064',
    950: '#000000',
  },
}
SCSS
$custom: #212064;
$custom-light: #655b91;
$custom-dark: #000000;
JSON
{
  "hex": "#212064",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 100
  },
  "hsl": {
    "h": 240.882,
    "s": 51.515,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29319,
    "c": 0.11625,
    "h": 277.1
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#212064
secondary
#979848
accent
#DB4DD9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212064

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

Preview Lab → · Contrast checker → · Palette generator →

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