#222297#222297

#222297 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.182 H 272.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#222297
RGBrgb(34, 34, 151)
HSLhsl(240, 63%, 36%)
HSVhsv(240, 77%, 59%)
CMYKcmyk(77.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(22.72, 40.85, -62.85)
CIE-LCHlch(22.72, 74.96, 303.02°)
OKLaboklab(35.12% 0.0063 -0.1819)
OKLCHoklch(35.12% 0.182 272)
XYZxyz(6.8157, 3.7178, 29.6305)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222297 #979722
analogous
#225D97 #222297 #5D2297
triadic
#222297 #972222 #229722
tetradic
#222297 #97225D #979722 #22975D
square
#222297 #97225D #979722 #22975D
split-complementary
#222297 #975D22 #5D9722
monochromatic
#0C0C33 #171765 #222297 #2D2DC9 #5A5ADA

Accessibility & contrast

On white

12.04
#222297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#222297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222297
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222297#FFFFFF#000000##FFFFFF
##2222971.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222297;
/* rgb */ color: rgb(34, 34, 151);
/* oklch */ color: oklch(35.1% 0.182 272.0);
Tailwind
colors: {
  custom: {
    50: '#725fb7',
    500: '#222297',
    950: '#000000',
  },
}
SCSS
$custom: #222297;
$custom-light: #725fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#222297",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35124,
    "c": 0.18206,
    "h": 272
  },
  "luminance": 0.03719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222297

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

Preview Lab → · Contrast checker → · Palette generator →

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