#222295#222295

#222295 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.180 H 272.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#222295
RGBrgb(34, 34, 149)
HSLhsl(240, 63%, 36%)
HSVhsv(240, 77%, 58%)
CMYKcmyk(77.2%, 77.2%, 0%, 41.6%)
CIE-LABlab(22.49, 40.17, -61.99)
CIE-LCHlch(22.49, 73.87, 302.94°)
OKLaboklab(34.9% 0.0067 -0.1794)
OKLCHoklch(34.9% 0.18 272.1)
XYZxyz(6.6547, 3.6534, 28.7824)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222295 #959522
analogous
#225B95 #222295 #5B2295
triadic
#222295 #952222 #229522
tetradic
#222295 #95225B #959522 #22955B
square
#222295 #95225B #959522 #22955B
split-complementary
#222295 #955B22 #5B9522
monochromatic
#0B0B31 #171763 #222295 #2D2DC7 #5858D9

Accessibility & contrast

On white

12.13
#222295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#222295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222295
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222295#FFFFFF#000000##FFFFFF
##2222951.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222295;
/* rgb */ color: rgb(34, 34, 149);
/* oklch */ color: oklch(34.9% 0.180 272.1);
Tailwind
colors: {
  custom: {
    50: '#725fb5',
    500: '#222295',
    950: '#000000',
  },
}
SCSS
$custom: #222295;
$custom-light: #725fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#222295",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 240,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34899,
    "c": 0.17957,
    "h": 272.1
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#222295
secondary
#BDBD56
accent
#E642E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222295

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

Preview Lab → · Contrast checker → · Palette generator →

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