#222A71#222A71

#222A71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.122 H 272.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#222A71
RGBrgb(34, 42, 113)
HSLhsl(234, 54%, 29%)
HSVhsv(234, 70%, 44%)
CMYKcmyk(69.9%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.78, 21.90, -42.12)
CIE-LCHlch(20.78, 47.48, 297.47°)
OKLaboklab(32.57% 0.0059 -0.1214)
OKLCHoklch(32.57% 0.122 272.8)
XYZxyz(4.4673, 3.1879, 15.9995)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A71 #716922
analogous
#225271 #222A71 #422271
triadic
#222A71 #71222A #2A7122
tetradic
#222A71 #712252 #716922 #227142
square
#222A71 #712252 #716922 #227142
split-complementary
#222A71 #714222 #527122
monochromatic
#070918 #141942 #222A71 #303BA0 #4653C7

Accessibility & contrast

On white

12.82
#222A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#222A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A71
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A71#FFFFFF#000000##FFFFFF
##222A711.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222a71;
/* rgb */ color: rgb(34, 42, 113);
/* oklch */ color: oklch(32.6% 0.122 272.8);
Tailwind
colors: {
  custom: {
    50: '#68639a',
    500: '#222a71',
    950: '#000000',
  },
}
SCSS
$custom: #222a71;
$custom-light: #68639a;
$custom-dark: #000000;
JSON
{
  "hex": "#222a71",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 233.924,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32574,
    "c": 0.12152,
    "h": 272.8
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#222A71
secondary
#A49B4A
accent
#CE4BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222A71

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

Preview Lab → · Contrast checker → · Palette generator →

#222A71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva