#212267#212267

#212267 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 30.0% C 0.118 H 276.0°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#212267
RGBrgb(33, 34, 103)
HSLhsl(239, 51%, 27%)
HSVhsv(239, 68%, 40%)
CMYKcmyk(68%, 67%, 0%, 59.6%)
CIE-LABlab(17.67, 23.49, -40.70)
CIE-LCHlch(17.67, 46.99, 299.99°)
OKLaboklab(29.99% 0.0123 -0.1173)
OKLCHoklch(29.99% 0.118 276)
XYZxyz(3.6466, 2.4464, 13.1094)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212267 #676621
analogous
#214567 #212267 #432167
triadic
#212267 #672122 #226721
tetradic
#212267 #672145 #676621 #216743
square
#212267 #672145 #676621 #216743
split-complementary
#212267 #674321 #456721
monochromatic
#070817 #121339 #212267 #303195 #4042C2

Accessibility & contrast

On white

14.10
#212267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#212267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212267
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212267#FFFFFF#000000##FFFFFF
##2122671.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212267;
/* rgb */ color: rgb(33, 34, 103);
/* oklch */ color: oklch(30.0% 0.118 276.0);
Tailwind
colors: {
  custom: {
    50: '#665d93',
    500: '#212267',
    950: '#000000',
  },
}
SCSS
$custom: #212267;
$custom-light: #665d93;
$custom-dark: #000000;
JSON
{
  "hex": "#212267",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 103
  },
  "hsl": {
    "h": 239.143,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2999,
    "c": 0.11793,
    "h": 276
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#212267
secondary
#9B9A49
accent
#D94DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212267

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

Preview Lab → · Contrast checker → · Palette generator →

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