#222797#222797

#222797 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.177 H 271.3°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#222797
RGBrgb(34, 39, 151)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 77%, 59%)
CMYKcmyk(77.5%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.75, 37.93, -61.14)
CIE-LCHlch(23.75, 71.95, 301.81°)
OKLaboklab(35.86% 0.0041 -0.177)
OKLCHoklch(35.86% 0.177 271.3)
XYZxyz(6.9692, 4.0247, 29.6817)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222797 #979222
analogous
#226297 #222797 #582297
triadic
#222797 #972227 #279722
tetradic
#222797 #972262 #979222 #229758
square
#222797 #972262 #979222 #229758
split-complementary
#222797 #975822 #629722
monochromatic
#0C0D33 #171A65 #222797 #2D34C9 #5A5FDA

Accessibility & contrast

On white

11.63
#222797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#222797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222797
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222797#FFFFFF#000000##FFFFFF
##2227971.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222797;
/* rgb */ color: rgb(34, 39, 151);
/* oklch */ color: oklch(35.9% 0.177 271.3);
Tailwind
colors: {
  custom: {
    50: '#7262b7',
    500: '#222797',
    950: '#000000',
  },
}
SCSS
$custom: #222797;
$custom-light: #7262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222797",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 237.436,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3586,
    "c": 0.17705,
    "h": 271.3
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#222797
secondary
#BEBA57
accent
#DF42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222797

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

Preview Lab → · Contrast checker → · Palette generator →

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