#212277#212277

#212277 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.141 H 274.3°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#212277
RGBrgb(33, 34, 119)
HSLhsl(239, 57%, 30%)
HSVhsv(239, 72%, 47%)
CMYKcmyk(72.3%, 71.4%, 0%, 53.3%)
CIE-LABlab(19.22, 29.45, -48.53)
CIE-LCHlch(19.22, 56.77, 301.25°)
OKLaboklab(31.59% 0.0106 -0.1402)
OKLCHoklch(31.59% 0.141 274.3)
XYZxyz(4.5279, 2.7989, 17.7508)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212277 #777621
analogous
#214D77 #212277 #4B2177
triadic
#212277 #772122 #227721
tetradic
#212277 #77214D #777621 #21774B
square
#212277 #77214D #777621 #21774B
split-complementary
#212277 #774B21 #4D7721
monochromatic
#070718 #141447 #212277 #2E30A7 #4748CC

Accessibility & contrast

On white

13.46
#212277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212277
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212277#FFFFFF#000000##FFFFFF
##2122771.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212277;
/* rgb */ color: rgb(33, 34, 119);
/* oklch */ color: oklch(31.6% 0.141 274.3);
Tailwind
colors: {
  custom: {
    50: '#6a5d9f',
    500: '#212277',
    950: '#000000',
  },
}
SCSS
$custom: #212277;
$custom-light: #6a5d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#212277",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 239.302,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31588,
    "c": 0.14064,
    "h": 274.3
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#212277
secondary
#AAA94A
accent
#DE48E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #212277

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

Preview Lab → · Contrast checker → · Palette generator →

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