#222A8A#222A8A

#222A8A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.157 H 271.5°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#222A8A
RGBrgb(34, 42, 138)
HSLhsl(235, 60%, 34%)
HSVhsv(235, 75%, 54%)
CMYKcmyk(75.4%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.10, 31.35, -54.16)
CIE-LCHlch(23.10, 62.58, 300.06°)
OKLaboklab(34.99% 0.0042 -0.1567)
OKLCHoklch(34.99% 0.157 271.5)
XYZxyz(6.0735, 3.8304, 24.4591)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A8A #8A8222
analogous
#225E8A #222A8A #4E228A
triadic
#222A8A #8A222A #2A8A22
tetradic
#222A8A #8A225E #8A8222 #228A4E
square
#222A8A #8A225E #8A8222 #228A4E
split-complementary
#222A8A #8A4E22 #5E8A22
monochromatic
#0A0C28 #161B59 #222A8A #2E39BB #525CD4

Accessibility & contrast

On white

11.89
#222A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#222A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A8A
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A8A#FFFFFF#000000##FFFFFF
##222A8A1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222a8a;
/* rgb */ color: rgb(34, 42, 138);
/* oklch */ color: oklch(35.0% 0.157 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e64ad',
    500: '#222a8a',
    950: '#000000',
  },
}
SCSS
$custom: #222a8a;
$custom-light: #6e64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#222a8a",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 235.385,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3499,
    "c": 0.15671,
    "h": 271.5
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#222A8A
secondary
#B8B050
accent
#D744E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #222A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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