#222696#222696

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

Color values

HEX#222696
RGBrgb(34, 38, 150)
HSLhsl(238, 63%, 36%)
HSVhsv(238, 77%, 59%)
CMYKcmyk(77.3%, 74.7%, 0%, 41.2%)
CIE-LABlab(23.43, 38.18, -61.06)
CIE-LCHlch(23.43, 72.01, 302.02°)
OKLaboklab(35.6% 0.0047 -0.1767)
OKLCHoklch(35.6% 0.177 271.5)
XYZxyz(6.8560, 3.9276, 29.2450)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222696 #969222
analogous
#226096 #222696 #582296
triadic
#222696 #962226 #269622
tetradic
#222696 #962260 #969222 #229658
square
#222696 #962260 #969222 #229658
split-complementary
#222696 #965822 #609622
monochromatic
#0B0D32 #171964 #222696 #2D33C8 #595DD9

Accessibility & contrast

On white

11.76
#222696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222696
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222696#FFFFFF#000000##FFFFFF
##2226961.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222696;
/* rgb */ color: rgb(34, 38, 150);
/* oklch */ color: oklch(35.6% 0.177 271.5);
Tailwind
colors: {
  custom: {
    50: '#7261b6',
    500: '#222696',
    950: '#000000',
  },
}
SCSS
$custom: #222696;
$custom-light: #7261b6;
$custom-dark: #000000;
JSON
{
  "hex": "#222696",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 237.931,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.17681,
    "h": 271.5
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#222696
secondary
#BEBA56
accent
#E042E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222696

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

Preview Lab → · Contrast checker → · Palette generator →

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