#222995#222995

#222995 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.172 H 271.1°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#222995
RGBrgb(34, 41, 149)
HSLhsl(236, 63%, 36%)
HSVhsv(236, 77%, 58%)
CMYKcmyk(77.2%, 72.5%, 0%, 41.6%)
CIE-LABlab(23.98, 35.99, -59.53)
CIE-LCHlch(23.98, 69.56, 301.16°)
OKLaboklab(35.96% 0.0034 -0.1723)
OKLCHoklch(35.96% 0.172 271.1)
XYZxyz(6.8756, 4.0951, 28.8560)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222995 #958E22
analogous
#226295 #222995 #542295
triadic
#222995 #952229 #299522
tetradic
#222995 #952262 #958E22 #229554
square
#222995 #952262 #958E22 #229554
split-complementary
#222995 #955422 #629522
monochromatic
#0B0E31 #171B63 #222995 #2D37C7 #5860D9

Accessibility & contrast

On white

11.54
#222995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#222995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222995
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222995#FFFFFF#000000##FFFFFF
##2229951.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222995;
/* rgb */ color: rgb(34, 41, 149);
/* oklch */ color: oklch(36.0% 0.172 271.1);
Tailwind
colors: {
  custom: {
    50: '#7163b5',
    500: '#222995',
    950: '#000000',
  },
}
SCSS
$custom: #222995;
$custom-light: #7163b5;
$custom-dark: #000000;
JSON
{
  "hex": "#222995",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 236.348,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35962,
    "c": 0.17235,
    "h": 271.1
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#222995
secondary
#BDB756
accent
#DC42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #222995

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

Preview Lab → · Contrast checker → · Palette generator →

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