#222397#222397

#222397 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.181 H 271.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#222397
RGBrgb(34, 35, 151)
HSLhsl(239, 63%, 36%)
HSVhsv(239, 77%, 59%)
CMYKcmyk(77.5%, 76.8%, 0%, 40.8%)
CIE-LABlab(22.92, 40.28, -62.52)
CIE-LCHlch(22.92, 74.38, 302.79°)
OKLaboklab(35.27% 0.0059 -0.181)
OKLCHoklch(35.27% 0.181 271.9)
XYZxyz(6.8447, 3.7758, 29.6402)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222397 #979622
analogous
#225E97 #222397 #5C2297
triadic
#222397 #972223 #239722
tetradic
#222397 #97225E #979622 #22975C
square
#222397 #97225E #979622 #22975C
split-complementary
#222397 #975C22 #5E9722
monochromatic
#0C0C33 #171765 #222397 #2D2FC9 #5A5BDA

Accessibility & contrast

On white

11.96
#222397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#222397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222397
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222397#FFFFFF#000000##FFFFFF
##2223971.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222397;
/* rgb */ color: rgb(34, 35, 151);
/* oklch */ color: oklch(35.3% 0.181 271.9);
Tailwind
colors: {
  custom: {
    50: '#7260b7',
    500: '#222397',
    950: '#000000',
  },
}
SCSS
$custom: #222397;
$custom-light: #7260b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222397",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 239.487,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35265,
    "c": 0.18108,
    "h": 271.9
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#222397
secondary
#BEBD57
accent
#E542E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222397

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

Preview Lab → · Contrast checker → · Palette generator →

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