#222170#222170

#222170 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.132 H 275.9°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#222170
RGBrgb(34, 33, 112)
HSLhsl(241, 54%, 28%)
HSVhsv(241, 71%, 44%)
CMYKcmyk(69.6%, 70.5%, 0%, 56.1%)
CIE-LABlab(18.35, 27.67, -45.45)
CIE-LCHlch(18.35, 53.21, 301.33°)
OKLaboklab(30.77% 0.0136 -0.1312)
OKLCHoklch(30.77% 0.132 275.9)
XYZxyz(4.1272, 2.5973, 15.6099)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222170 #6F7021
analogous
#214770 #222170 #492170
triadic
#222170 #702221 #217022
tetradic
#222170 #702147 #6F7021 #217049
square
#222170 #702147 #6F7021 #217049
split-complementary
#222170 #704921 #477021
monochromatic
#070718 #141341 #222170 #302F9F #4544C8

Accessibility & contrast

On white

13.82
#222170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#222170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222170
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222170#FFFFFF#000000##FFFFFF
##2221701.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #222170;
/* rgb */ color: rgb(34, 33, 112);
/* oklch */ color: oklch(30.8% 0.132 275.9);
Tailwind
colors: {
  custom: {
    50: '#695d9a',
    500: '#222170',
    950: '#000000',
  },
}
SCSS
$custom: #222170;
$custom-light: #695d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#222170",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 240.759,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30768,
    "c": 0.13188,
    "h": 275.9
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#222170
secondary
#A2A449
accent
#DE4ADC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222170

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

Preview Lab → · Contrast checker → · Palette generator →

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