#212167#212167

#212167 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.8% C 0.119 H 276.4°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#212167
RGBrgb(33, 33, 103)
HSLhsl(240, 51%, 27%)
HSVhsv(240, 68%, 40%)
CMYKcmyk(68%, 68%, 0%, 59.6%)
CIE-LABlab(17.41, 24.18, -41.12)
CIE-LCHlch(17.41, 47.70, 300.45°)
OKLaboklab(29.8% 0.0132 -0.1185)
OKLCHoklch(29.8% 0.119 276.4)
XYZxyz(3.6184, 2.3900, 13.1000)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212167 #676721
analogous
#214467 #212167 #442167
triadic
#212167 #672121 #216721
tetradic
#212167 #672144 #676721 #216744
square
#212167 #672144 #676721 #216744
split-complementary
#212167 #674421 #446721
monochromatic
#070717 #121239 #212167 #303095 #4040C2

Accessibility & contrast

On white

14.21
#212167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212167
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212167#FFFFFF#000000##FFFFFF
##2121671.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#003340
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212167;
/* rgb */ color: rgb(33, 33, 103);
/* oklch */ color: oklch(29.8% 0.119 276.4);
Tailwind
colors: {
  custom: {
    50: '#665c93',
    500: '#212167',
    950: '#000000',
  },
}
SCSS
$custom: #212167;
$custom-light: #665c93;
$custom-dark: #000000;
JSON
{
  "hex": "#212167",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 103
  },
  "hsl": {
    "h": 240,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.298,
    "c": 0.11928,
    "h": 276.4
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212167

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

Preview Lab → · Contrast checker → · Palette generator →

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