#222777#222777

#222777 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.134 H 273.5°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#222777
RGBrgb(34, 39, 119)
HSLhsl(236, 56%, 30%)
HSVhsv(236, 71%, 47%)
CMYKcmyk(71.4%, 67.2%, 0%, 53.3%)
CIE-LABlab(20.53, 26.25, -46.39)
CIE-LCHlch(20.53, 53.30, 299.51°)
OKLaboklab(32.56% 0.0081 -0.1339)
OKLCHoklch(32.56% 0.134 273.5)
XYZxyz(4.7139, 3.1226, 17.8035)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222777 #777222
analogous
#225177 #222777 #482277
triadic
#222777 #772227 #277722
tetradic
#222777 #772251 #777222 #227748
square
#222777 #772251 #777222 #227748
split-complementary
#222777 #774822 #517722
monochromatic
#070818 #141747 #222777 #3037A7 #4950CB

Accessibility & contrast

On white

12.93
#222777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#222777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222777
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222777#FFFFFF#000000##FFFFFF
##2227771.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222777;
/* rgb */ color: rgb(34, 39, 119);
/* oklch */ color: oklch(32.6% 0.134 273.5);
Tailwind
colors: {
  custom: {
    50: '#6a619f',
    500: '#222777',
    950: '#000000',
  },
}
SCSS
$custom: #222777;
$custom-light: #6a619f;
$custom-dark: #000000;
JSON
{
  "hex": "#222777",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 119
  },
  "hsl": {
    "h": 236.471,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32556,
    "c": 0.13415,
    "h": 273.5
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#222777
secondary
#AAA44B
accent
#D649DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #222777

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

Preview Lab → · Contrast checker → · Palette generator →

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