#222770#222770

#222770 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.124 H 274.0°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#222770
RGBrgb(34, 39, 112)
HSLhsl(236, 53%, 29%)
HSVhsv(236, 70%, 44%)
CMYKcmyk(69.6%, 65.2%, 0%, 56.1%)
CIE-LABlab(19.89, 23.61, -42.94)
CIE-LCHlch(19.89, 49.00, 298.80°)
OKLaboklab(31.89% 0.0086 -0.1238)
OKLCHoklch(31.89% 0.124 274)
XYZxyz(4.3089, 2.9606, 15.6705)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222770 #706B22
analogous
#224E70 #222770 #442270
triadic
#222770 #702227 #277022
tetradic
#222770 #70224E #706B22 #227044
square
#222770 #70224E #706B22 #227044
split-complementary
#222770 #704422 #4E7022
monochromatic
#070817 #141741 #222770 #30379F #464EC7

Accessibility & contrast

On white

13.19
#222770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#222770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222770
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222770#FFFFFF#000000##FFFFFF
##2227701.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #222770;
/* rgb */ color: rgb(34, 39, 112);
/* oklch */ color: oklch(31.9% 0.124 274.0);
Tailwind
colors: {
  custom: {
    50: '#68619a',
    500: '#222770',
    950: '#000000',
  },
}
SCSS
$custom: #222770;
$custom-light: #68619a;
$custom-dark: #000000;
JSON
{
  "hex": "#222770",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 112
  },
  "hsl": {
    "h": 236.154,
    "s": 53.425,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31886,
    "c": 0.12409,
    "h": 274
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#222770
secondary
#A39E4A
accent
#D34BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222770

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

Preview Lab → · Contrast checker → · Palette generator →

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