#222471#222471

#222471 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.129 H 274.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#222471
RGBrgb(34, 36, 113)
HSLhsl(238, 54%, 29%)
HSVhsv(238, 70%, 44%)
CMYKcmyk(69.9%, 68.1%, 0%, 55.7%)
CIE-LABlab(19.20, 26.03, -44.71)
CIE-LCHlch(19.20, 51.74, 300.21°)
OKLaboklab(31.41% 0.011 -0.129)
OKLCHoklch(31.41% 0.129 274.9)
XYZxyz(4.2702, 2.7937, 15.9338)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222471 #716F22
analogous
#224C71 #222471 #482271
triadic
#222471 #712224 #247122
tetradic
#222471 #71224C #716F22 #227148
square
#222471 #71224C #716F22 #227148
split-complementary
#222471 #714822 #4C7122
monochromatic
#070718 #141542 #222471 #3033A0 #4649C7

Accessibility & contrast

On white

13.47
#222471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222471
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222471#FFFFFF#000000##FFFFFF
##2224711.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222471;
/* rgb */ color: rgb(34, 36, 113);
/* oklch */ color: oklch(31.4% 0.129 274.9);
Tailwind
colors: {
  custom: {
    50: '#695f9b',
    500: '#222471',
    950: '#000000',
  },
}
SCSS
$custom: #222471;
$custom-light: #695f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222471",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 238.481,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31411,
    "c": 0.12948,
    "h": 274.9
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#222471
secondary
#A4A24A
accent
#D94BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222471

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

Preview Lab → · Contrast checker → · Palette generator →

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