#222B71#222B71

#222B71 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.8% C 0.120 H 272.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#222B71
RGBrgb(34, 43, 113)
HSLhsl(233, 54%, 29%)
HSVhsv(233, 70%, 44%)
CMYKcmyk(69.9%, 61.9%, 0%, 55.7%)
CIE-LABlab(21.06, 21.20, -41.68)
CIE-LCHlch(21.06, 46.76, 296.97°)
OKLaboklab(32.78% 0.0049 -0.1201)
OKLCHoklch(32.78% 0.12 272.4)
XYZxyz(4.5032, 3.2597, 16.0114)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222B71 #716822
analogous
#225371 #222B71 #412271
triadic
#222B71 #71222B #2B7122
tetradic
#222B71 #712253 #716822 #227141
square
#222B71 #712253 #716822 #227141
split-complementary
#222B71 #714122 #537122
monochromatic
#070918 #141942 #222B71 #303DA0 #4655C7

Accessibility & contrast

On white

12.71
#222B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#222B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222B71
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222B71#FFFFFF#000000##FFFFFF
##222B711.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222b71;
/* rgb */ color: rgb(34, 43, 113);
/* oklch */ color: oklch(32.8% 0.120 272.4);
Tailwind
colors: {
  custom: {
    50: '#68649a',
    500: '#222b71',
    950: '#000000',
  },
}
SCSS
$custom: #222b71;
$custom-light: #68649a;
$custom-dark: #000000;
JSON
{
  "hex": "#222b71",
  "rgb": {
    "r": 34,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 233.165,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32778,
    "c": 0.12016,
    "h": 272.4
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#222B71
secondary
#A49A4A
accent
#CC4BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222B71

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

Preview Lab → · Contrast checker → · Palette generator →

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