#212174#212174

#212174 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.138 H 274.9°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#212174
RGBrgb(33, 33, 116)
HSLhsl(240, 56%, 29%)
HSVhsv(240, 72%, 45%)
CMYKcmyk(71.6%, 71.6%, 0%, 54.5%)
CIE-LABlab(18.68, 29.00, -47.50)
CIE-LCHlch(18.68, 55.65, 301.40°)
OKLaboklab(31.11% 0.0117 -0.1372)
OKLCHoklch(31.11% 0.138 274.9)
XYZxyz(4.3224, 2.6716, 16.8075)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212174 #747421
analogous
#214B74 #212174 #4B2174
triadic
#212174 #742121 #217421
tetradic
#212174 #74214B #747421 #21744B
square
#212174 #74214B #747421 #21744B
split-complementary
#212174 #744B21 #4B7421
monochromatic
#070718 #131344 #212174 #2F2FA4 #4545CA

Accessibility & contrast

On white

13.69
#212174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#212174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212174
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212174#FFFFFF#000000##FFFFFF
##2121741.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212174;
/* rgb */ color: rgb(33, 33, 116);
/* oklch */ color: oklch(31.1% 0.138 274.9);
Tailwind
colors: {
  custom: {
    50: '#695d9d',
    500: '#212174',
    950: '#000000',
  },
}
SCSS
$custom: #212174;
$custom-light: #695d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#212174",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 240,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31105,
    "c": 0.13772,
    "h": 274.9
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#212174
secondary
#A7A749
accent
#DF49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212174

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

Preview Lab → · Contrast checker → · Palette generator →

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