#222795#222795

#222795 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.174 H 271.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#222795
RGBrgb(34, 39, 149)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 77%, 58%)
CMYKcmyk(77.2%, 73.8%, 0%, 41.6%)
CIE-LABlab(23.54, 37.22, -60.26)
CIE-LCHlch(23.54, 70.83, 301.70°)
OKLaboklab(35.64% 0.0044 -0.1744)
OKLCHoklch(35.64% 0.175 271.5)
XYZxyz(6.8082, 3.9603, 28.8336)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222795 #959022
analogous
#226095 #222795 #562295
triadic
#222795 #952227 #279522
tetradic
#222795 #952260 #959022 #229556
square
#222795 #952260 #959022 #229556
split-complementary
#222795 #955622 #609522
monochromatic
#0B0D31 #171A63 #222795 #2D34C7 #585ED9

Accessibility & contrast

On white

11.72
#222795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#222795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222795
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222795#FFFFFF#000000##FFFFFF
##2227951.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222795;
/* rgb */ color: rgb(34, 39, 149);
/* oklch */ color: oklch(35.6% 0.174 271.5);
Tailwind
colors: {
  custom: {
    50: '#7162b5',
    500: '#222795',
    950: '#000000',
  },
}
SCSS
$custom: #222795;
$custom-light: #7162b5;
$custom-dark: #000000;
JSON
{
  "hex": "#222795",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 237.391,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35644,
    "c": 0.1745,
    "h": 271.5
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222795

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

Preview Lab → · Contrast checker → · Palette generator →

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