#222970#222970

#222970 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.121 H 273.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#222970
RGBrgb(34, 41, 112)
HSLhsl(235, 53%, 29%)
HSVhsv(235, 70%, 44%)
CMYKcmyk(69.6%, 63.4%, 0%, 56.1%)
CIE-LABlab(20.42, 22.22, -42.06)
CIE-LCHlch(20.42, 47.57, 297.84°)
OKLaboklab(32.28% 0.0068 -0.1212)
OKLCHoklch(32.28% 0.121 273.2)
XYZxyz(4.3763, 3.0954, 15.6929)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222970 #706922
analogous
#225070 #222970 #422270
triadic
#222970 #702229 #297022
tetradic
#222970 #702250 #706922 #227042
square
#222970 #702250 #706922 #227042
split-complementary
#222970 #704222 #507022
monochromatic
#070917 #141841 #222970 #303A9F #4651C7

Accessibility & contrast

On white

12.97
#222970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#222970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222970
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222970#FFFFFF#000000##FFFFFF
##2229701.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222970;
/* rgb */ color: rgb(34, 41, 112);
/* oklch */ color: oklch(32.3% 0.121 273.2);
Tailwind
colors: {
  custom: {
    50: '#68629a',
    500: '#222970',
    950: '#000000',
  },
}
SCSS
$custom: #222970;
$custom-light: #68629a;
$custom-dark: #000000;
JSON
{
  "hex": "#222970",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 234.615,
    "s": 53.425,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32282,
    "c": 0.1214,
    "h": 273.2
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#222970
secondary
#A39B4A
accent
#D04BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222970

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

Preview Lab → · Contrast checker → · Palette generator →

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