#212168#212168

#212168 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.121 H 276.2°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#212168
RGBrgb(33, 33, 104)
HSLhsl(240, 52%, 27%)
HSVhsv(240, 68%, 41%)
CMYKcmyk(68.3%, 68.3%, 0%, 59.2%)
CIE-LABlab(17.51, 24.55, -41.63)
CIE-LCHlch(17.51, 48.33, 300.53°)
OKLaboklab(29.9% 0.0131 -0.12)
OKLCHoklch(29.9% 0.121 276.2)
XYZxyz(3.6689, 2.4102, 13.3659)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212168 #686821
analogous
#214568 #212168 #452168
triadic
#212168 #682121 #216821
tetradic
#212168 #682145 #686821 #216845
square
#212168 #682145 #686821 #216845
split-complementary
#212168 #684521 #456821
monochromatic
#070717 #12123A #212168 #303096 #4141C3

Accessibility & contrast

On white

14.17
#212168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#212168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212168
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212168#FFFFFF#000000##FFFFFF
##2121681.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212168;
/* rgb */ color: rgb(33, 33, 104);
/* oklch */ color: oklch(29.9% 0.121 276.2);
Tailwind
colors: {
  custom: {
    50: '#665c94',
    500: '#212168',
    950: '#000000',
  },
}
SCSS
$custom: #212168;
$custom-light: #665c94;
$custom-dark: #000000;
JSON
{
  "hex": "#212168",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 240,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29897,
    "c": 0.12073,
    "h": 276.2
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#212168
secondary
#9C9C49
accent
#DB4DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212168

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

Preview Lab → · Contrast checker → · Palette generator →

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