#212474#212474

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

Color values

HEX#212474
RGBrgb(33, 36, 116)
HSLhsl(238, 56%, 29%)
HSVhsv(238, 72%, 45%)
CMYKcmyk(71.6%, 69%, 0%, 54.5%)
CIE-LABlab(19.41, 27.01, -46.29)
CIE-LCHlch(19.41, 53.59, 300.26°)
OKLaboklab(31.64% 0.0095 -0.1337)
OKLCHoklch(31.64% 0.134 274)
XYZxyz(4.4094, 2.8456, 16.8365)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212474 #747121
analogous
#214E74 #212474 #482174
triadic
#212474 #742124 #247421
tetradic
#212474 #74214E #747121 #217448
square
#212474 #74214E #747121 #217448
split-complementary
#212474 #744821 #4E7421
monochromatic
#070718 #131544 #212474 #2F33A4 #454ACA

Accessibility & contrast

On white

13.38
#212474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#212474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212474
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212474#FFFFFF#000000##FFFFFF
##2124741.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212474;
/* rgb */ color: rgb(33, 36, 116);
/* oklch */ color: oklch(31.6% 0.134 274.0);
Tailwind
colors: {
  custom: {
    50: '#695f9d',
    500: '#212474',
    950: '#000000',
  },
}
SCSS
$custom: #212474;
$custom-light: #695f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#212474",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 116
  },
  "hsl": {
    "h": 237.831,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31639,
    "c": 0.134,
    "h": 274
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#212474
secondary
#A7A449
accent
#DA49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212474

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

Preview Lab → · Contrast checker → · Palette generator →

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