#222677#222677

#222677 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.135 H 273.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#222677
RGBrgb(34, 38, 119)
HSLhsl(237, 56%, 30%)
HSVhsv(237, 71%, 47%)
CMYKcmyk(71.4%, 68.1%, 0%, 53.3%)
CIE-LABlab(20.27, 26.93, -46.80)
CIE-LCHlch(20.27, 54.00, 299.92°)
OKLaboklab(32.37% 0.0089 -0.1351)
OKLCHoklch(32.37% 0.135 273.8)
XYZxyz(4.6815, 3.0578, 17.7927)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222677 #777322
analogous
#225177 #222677 #482277
triadic
#222677 #772226 #267722
tetradic
#222677 #772251 #777322 #227748
square
#222677 #772251 #777322 #227748
split-complementary
#222677 #774822 #517722
monochromatic
#070818 #141747 #222677 #3035A7 #494FCB

Accessibility & contrast

On white

13.03
#222677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#222677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222677
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222677#FFFFFF#000000##FFFFFF
##2226771.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222677;
/* rgb */ color: rgb(34, 38, 119);
/* oklch */ color: oklch(32.4% 0.135 273.8);
Tailwind
colors: {
  custom: {
    50: '#6a609f',
    500: '#222677',
    950: '#000000',
  },
}
SCSS
$custom: #222677;
$custom-light: #6a609f;
$custom-dark: #000000;
JSON
{
  "hex": "#222677",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 119
  },
  "hsl": {
    "h": 237.176,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32371,
    "c": 0.13543,
    "h": 273.8
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#222677
secondary
#AAA64B
accent
#D849DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #222677

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

Preview Lab → · Contrast checker → · Palette generator →

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