#222070#222070

#222070 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.133 H 276.2°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#222070
RGBrgb(34, 32, 112)
HSLhsl(242, 56%, 28%)
HSVhsv(242, 71%, 44%)
CMYKcmyk(69.6%, 71.4%, 0%, 56.1%)
CIE-LABlab(18.11, 28.33, -45.84)
CIE-LCHlch(18.11, 53.89, 301.71°)
OKLaboklab(30.59% 0.0144 -0.1323)
OKLCHoklch(30.59% 0.133 276.2)
XYZxyz(4.0999, 2.5426, 15.6008)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222070 #6E7020
analogous
#204670 #222070 #4A2070
triadic
#222070 #702220 #207022
tetradic
#222070 #702046 #6E7020 #20704A
square
#222070 #702046 #6E7020 #20704A
split-complementary
#222070 #704A20 #467020
monochromatic
#070718 #141240 #222070 #302EA0 #4542C9

Accessibility & contrast

On white

13.92
#222070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#222070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222070
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222070#FFFFFF#000000##FFFFFF
##2220701.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #222070;
/* rgb */ color: rgb(34, 32, 112);
/* oklch */ color: oklch(30.6% 0.133 276.2);
Tailwind
colors: {
  custom: {
    50: '#695c9a',
    500: '#222070',
    950: '#000000',
  },
}
SCSS
$custom: #222070;
$custom-light: #695c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#222070",
  "rgb": {
    "r": 34,
    "g": 32,
    "b": 112
  },
  "hsl": {
    "h": 241.5,
    "s": 55.556,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30592,
    "c": 0.13313,
    "h": 276.2
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#222070
secondary
#A1A448
accent
#DF49DB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222070

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

Preview Lab → · Contrast checker → · Palette generator →

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