#212774#212774

#212774 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.130 H 273.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#212774
RGBrgb(33, 39, 116)
HSLhsl(236, 56%, 29%)
HSVhsv(236, 72%, 45%)
CMYKcmyk(71.6%, 66.4%, 0%, 54.5%)
CIE-LABlab(20.18, 24.97, -45.03)
CIE-LCHlch(20.18, 51.49, 299.01°)
OKLaboklab(32.2% 0.0071 -0.13)
OKLCHoklch(32.2% 0.13 273.1)
XYZxyz(4.5040, 3.0349, 16.8680)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212774 #746E21
analogous
#215174 #212774 #452174
triadic
#212774 #742127 #277421
tetradic
#212774 #742151 #746E21 #217445
square
#212774 #742151 #746E21 #217445
split-complementary
#212774 #744521 #517421
monochromatic
#070818 #131744 #212774 #2F37A4 #454FCA

Accessibility & contrast

On white

13.07
#212774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212774
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212774#FFFFFF#000000##FFFFFF
##2127741.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212774;
/* rgb */ color: rgb(33, 39, 116);
/* oklch */ color: oklch(32.2% 0.130 273.1);
Tailwind
colors: {
  custom: {
    50: '#69619d',
    500: '#212774',
    950: '#000000',
  },
}
SCSS
$custom: #212774;
$custom-light: #69619d;
$custom-dark: #000000;
JSON
{
  "hex": "#212774",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 235.663,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.322,
    "c": 0.13016,
    "h": 273.1
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#212774
secondary
#A7A149
accent
#D449DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212774

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

Preview Lab → · Contrast checker → · Palette generator →

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