#222AA7#222AA7

#222AA7 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.194 H 270.1°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#222AA7
RGBrgb(34, 42, 167)
HSLhsl(236, 66%, 39%)
HSVhsv(236, 80%, 65%)
CMYKcmyk(79.6%, 74.9%, 0%, 34.5%)
CIE-LABlab(26.11, 41.72, -66.99)
CIE-LCHlch(26.11, 78.92, 301.91°)
OKLaboklab(38.06% 0.0004 -0.194)
OKLCHoklch(38.06% 0.194 270.1)
XYZxyz(8.4603, 4.7851, 37.0294)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222AA7 #A79F22
analogous
#226DA7 #222AA7 #5D22A7
triadic
#222AA7 #A7222A #2AA722
tetradic
#222AA7 #A7226D #A79F22 #22A75D
square
#222AA7 #A7226D #A79F22 #22A75D
split-complementary
#222AA7 #A75D22 #6DA722
monochromatic
#0D1041 #181D74 #222AA7 #313BD5 #646BDF

Accessibility & contrast

On white

10.73
#222AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#222AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222AA7
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222AA7#FFFFFF#000000##FFFFFF
##222AA71.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #222aa7;
/* rgb */ color: rgb(34, 42, 167);
/* oklch */ color: oklch(38.1% 0.194 270.1);
Tailwind
colors: {
  custom: {
    50: '#7665c2',
    500: '#222aa7',
    950: '#000000',
  },
}
SCSS
$custom: #222aa7;
$custom-light: #7665c2;
$custom-dark: #000000;
JSON
{
  "hex": "#222aa7",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 236.391,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38055,
    "c": 0.19404,
    "h": 270.1
  },
  "luminance": 0.04786
}

Semantic roles & 50–950 ramp

primary
#222AA7
secondary
#C5BF60
accent
#DF3FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #222AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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