#222895#222895

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

Color values

HEX#222895
RGBrgb(34, 40, 149)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 77%, 58%)
CMYKcmyk(77.2%, 73.2%, 0%, 41.6%)
CIE-LABlab(23.76, 36.61, -59.90)
CIE-LCHlch(23.76, 70.20, 301.43°)
OKLaboklab(35.8% 0.0039 -0.1734)
OKLCHoklch(35.8% 0.173 271.3)
XYZxyz(6.8415, 4.0269, 28.8446)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222895 #958F22
analogous
#226195 #222895 #552295
triadic
#222895 #952228 #289522
tetradic
#222895 #952261 #958F22 #229555
square
#222895 #952261 #958F22 #229555
split-complementary
#222895 #955522 #619522
monochromatic
#0B0D31 #171B63 #222895 #2D35C7 #585FD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##222895#FFFFFF#000000##FFFFFF
##2228951.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)
#003E98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222895;
/* rgb */ color: rgb(34, 40, 149);
/* oklch */ color: oklch(35.8% 0.173 271.3);
Tailwind
colors: {
  custom: {
    50: '#7163b5',
    500: '#222895',
    950: '#000000',
  },
}
SCSS
$custom: #222895;
$custom-light: #7163b5;
$custom-dark: #000000;
JSON
{
  "hex": "#222895",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 236.87,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35802,
    "c": 0.17343,
    "h": 271.3
  },
  "luminance": 0.04028
}

Semantic roles & 50–950 ramp

primary
#222895
secondary
#BDB856
accent
#DD42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222895

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

Preview Lab → · Contrast checker → · Palette generator →

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