#222371#222371

#222371 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.131 H 275.2°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#222371
RGBrgb(34, 35, 113)
HSLhsl(239, 54%, 29%)
HSVhsv(239, 70%, 44%)
CMYKcmyk(69.9%, 69%, 0%, 55.7%)
CIE-LABlab(18.95, 26.71, -45.12)
CIE-LCHlch(18.95, 52.43, 300.62°)
OKLaboklab(31.23% 0.0119 -0.1302)
OKLCHoklch(31.23% 0.131 275.2)
XYZxyz(4.2404, 2.7340, 15.9238)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222371 #717022
analogous
#224B71 #222371 #492271
triadic
#222371 #712223 #237122
tetradic
#222371 #71224B #717022 #227149
square
#222371 #71224B #717022 #227149
split-complementary
#222371 #714922 #4B7122
monochromatic
#070718 #141442 #222371 #3032A0 #4648C7

Accessibility & contrast

On white

13.58
#222371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#222371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222371
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222371#FFFFFF#000000##FFFFFF
##2223711.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #222371;
/* rgb */ color: rgb(34, 35, 113);
/* oklch */ color: oklch(31.2% 0.131 275.2);
Tailwind
colors: {
  custom: {
    50: '#695e9b',
    500: '#222371',
    950: '#000000',
  },
}
SCSS
$custom: #222371;
$custom-light: #695e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222371",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 239.241,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31227,
    "c": 0.13077,
    "h": 275.2
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#222371
secondary
#A4A34A
accent
#DB4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222371

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

Preview Lab → · Contrast checker → · Palette generator →

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