#222277#222277

#222277 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.140 H 274.8°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#222277
RGBrgb(34, 34, 119)
HSLhsl(240, 56%, 30%)
HSVhsv(240, 71%, 47%)
CMYKcmyk(71.4%, 71.4%, 0%, 53.3%)
CIE-LABlab(19.29, 29.58, -48.42)
CIE-LCHlch(19.29, 56.73, 301.42°)
OKLaboklab(31.66% 0.0119 -0.1399)
OKLCHoklch(31.66% 0.14 274.8)
XYZxyz(4.5604, 2.8156, 17.7523)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222277 #777722
analogous
#224C77 #222277 #4C2277
triadic
#222277 #772222 #227722
tetradic
#222277 #77224D #777722 #22774D
square
#222277 #77224D #777722 #22774D
split-complementary
#222277 #774D22 #4D7722
monochromatic
#070718 #141447 #222277 #3030A7 #4949CB

Accessibility & contrast

On white

13.43
#222277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#222277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222277
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222277#FFFFFF#000000##FFFFFF
##2222771.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222277;
/* rgb */ color: rgb(34, 34, 119);
/* oklch */ color: oklch(31.7% 0.140 274.8);
Tailwind
colors: {
  custom: {
    50: '#6a5d9f',
    500: '#222277',
    950: '#000000',
  },
}
SCSS
$custom: #222277;
$custom-light: #6a5d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#222277",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 240,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.31657,
    "c": 0.14037,
    "h": 274.8
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#222277
secondary
#AAAA4B
accent
#DF49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #222277

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

Preview Lab → · Contrast checker → · Palette generator →

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