#222799#222799

#222799 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.180 H 271.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#222799
RGBrgb(34, 39, 153)
HSLhsl(237, 64%, 37%)
HSVhsv(237, 78%, 60%)
CMYKcmyk(77.8%, 74.5%, 0%, 40%)
CIE-LABlab(23.97, 38.63, -62.01)
CIE-LCHlch(23.97, 73.06, 301.92°)
OKLaboklab(36.08% 0.0038 -0.1795)
OKLCHoklch(36.08% 0.18 271.2)
XYZxyz(7.1330, 4.0903, 30.5444)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222799 #999422
analogous
#226399 #222799 #592299
triadic
#222799 #992227 #279922
tetradic
#222799 #992263 #999422 #229959
square
#222799 #992263 #999422 #229959
split-complementary
#222799 #995922 #639922
monochromatic
#0C0D35 #171A67 #222799 #2D34CB #5B60DB

Accessibility & contrast

On white

11.55
#222799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#222799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222799
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222799#FFFFFF#000000##FFFFFF
##2227991.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222799;
/* rgb */ color: rgb(34, 39, 153);
/* oklch */ color: oklch(36.1% 0.180 271.2);
Tailwind
colors: {
  custom: {
    50: '#7262b8',
    500: '#222799',
    950: '#000000',
  },
}
SCSS
$custom: #222799;
$custom-light: #7262b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222799",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 237.479,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36077,
    "c": 0.17959,
    "h": 271.2
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#222799
secondary
#BFBB58
accent
#E041E7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #222799

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

Preview Lab → · Contrast checker → · Palette generator →

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