#222796#222796

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

Color values

HEX#222796
RGBrgb(34, 39, 150)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 77%, 59%)
CMYKcmyk(77.3%, 74%, 0%, 41.2%)
CIE-LABlab(23.65, 37.57, -60.70)
CIE-LCHlch(23.65, 71.39, 301.76°)
OKLaboklab(35.75% 0.0043 -0.1757)
OKLCHoklch(35.75% 0.176 271.4)
XYZxyz(6.8884, 3.9924, 29.2558)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222796 #969122
analogous
#226196 #222796 #572296
triadic
#222796 #962227 #279622
tetradic
#222796 #962261 #969122 #229657
square
#222796 #962261 #969122 #229657
split-complementary
#222796 #965722 #619622
monochromatic
#0B0D32 #171A64 #222796 #2D34C8 #595FD9

Accessibility & contrast

On white

11.68
#222796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#222796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222796
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222796#FFFFFF#000000##FFFFFF
##2227961.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222796;
/* rgb */ color: rgb(34, 39, 150);
/* oklch */ color: oklch(35.8% 0.176 271.4);
Tailwind
colors: {
  custom: {
    50: '#7262b6',
    500: '#222796',
    950: '#000000',
  },
}
SCSS
$custom: #222796;
$custom-light: #7262b6;
$custom-dark: #000000;
JSON
{
  "hex": "#222796",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 237.414,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35752,
    "c": 0.17577,
    "h": 271.4
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222796

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

Preview Lab → · Contrast checker → · Palette generator →

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