#222A80#222A80

#222A80 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.143 H 272.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#222A80
RGBrgb(34, 42, 128)
HSLhsl(235, 58%, 32%)
HSVhsv(235, 73%, 50%)
CMYKcmyk(73.4%, 67.2%, 0%, 49.8%)
CIE-LABlab(22.14, 27.62, -49.47)
CIE-LCHlch(22.14, 56.65, 299.18°)
OKLaboklab(33.99% 0.0051 -0.1429)
OKLCHoklch(33.99% 0.143 272.1)
XYZxyz(5.3826, 3.5540, 20.8202)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A80 #807822
analogous
#225980 #222A80 #492280
triadic
#222A80 #80222A #2A8022
tetradic
#222A80 #802259 #807822 #228049
square
#222A80 #802259 #807822 #228049
split-complementary
#222A80 #804922 #598022
monochromatic
#080A1F #151A50 #222A80 #2F3AB0 #4D58D0

Accessibility & contrast

On white

12.27
#222A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A80
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A80#FFFFFF#000000##FFFFFF
##222A801.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222a80;
/* rgb */ color: rgb(34, 42, 128);
/* oklch */ color: oklch(34.0% 0.143 272.1);
Tailwind
colors: {
  custom: {
    50: '#6c63a6',
    500: '#222a80',
    950: '#000000',
  },
}
SCSS
$custom: #222a80;
$custom-light: #6c63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#222a80",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 234.894,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33993,
    "c": 0.14301,
    "h": 272.1
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#222A80
secondary
#B2AA4B
accent
#D447E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #222A80

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

Preview Lab → · Contrast checker → · Palette generator →

#222A80 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva