#212867#212867

#212867 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.2% C 0.110 H 273.4°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#212867
RGBrgb(33, 40, 103)
HSLhsl(234, 51%, 27%)
HSVhsv(234, 68%, 40%)
CMYKcmyk(68%, 61.2%, 0%, 59.6%)
CIE-LABlab(19.31, 19.28, -38.04)
CIE-LCHlch(19.31, 42.65, 296.88°)
OKLaboklab(31.2% 0.0066 -0.1094)
OKLCHoklch(31.2% 0.11 273.4)
XYZxyz(3.8334, 2.8199, 13.1716)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212867 #676021
analogous
#214B67 #212867 #3D2167
triadic
#212867 #672128 #286721
tetradic
#212867 #67214B #676021 #21673D
square
#212867 #67214B #676021 #21673D
split-complementary
#212867 #673D21 #4B6721
monochromatic
#070917 #121639 #212867 #303A95 #404DC2

Accessibility & contrast

On white

13.43
#212867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#212867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212867
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212867#FFFFFF#000000##FFFFFF
##2128671.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#003743
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212867;
/* rgb */ color: rgb(33, 40, 103);
/* oklch */ color: oklch(31.2% 0.110 273.4);
Tailwind
colors: {
  custom: {
    50: '#656193',
    500: '#212867',
    950: '#000000',
  },
}
SCSS
$custom: #212867;
$custom-light: #656193;
$custom-dark: #000000;
JSON
{
  "hex": "#212867",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 103
  },
  "hsl": {
    "h": 234,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31195,
    "c": 0.10962,
    "h": 273.4
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#212867
secondary
#9B9349
accent
#CD4DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212867

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

Preview Lab → · Contrast checker → · Palette generator →

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