#222FA7#222FA7

#222FA7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.189 H 269.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#222FA7
RGBrgb(34, 47, 167)
HSLhsl(234, 66%, 39%)
HSVhsv(234, 80%, 65%)
CMYKcmyk(79.6%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.19, 38.72, -65.21)
CIE-LCHlch(27.19, 75.84, 300.70°)
OKLaboklab(38.83% -0.0017 -0.1889)
OKLCHoklch(38.83% 0.189 269.5)
XYZxyz(8.6489, 5.1621, 37.0923)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222FA7 #A79A22
analogous
#2272A7 #222FA7 #5722A7
triadic
#222FA7 #A7222F #2FA722
tetradic
#222FA7 #A72272 #A79A22 #22A757
square
#222FA7 #A72272 #A79A22 #22A757
split-complementary
#222FA7 #A75722 #72A722
monochromatic
#0D1241 #182174 #222FA7 #3141D5 #6470DF

Accessibility & contrast

On white

10.33
#222FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#222FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222FA7
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222FA7#FFFFFF#000000##FFFFFF
##222FA71.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #222fa7;
/* rgb */ color: rgb(34, 47, 167);
/* oklch */ color: oklch(38.8% 0.189 269.5);
Tailwind
colors: {
  custom: {
    50: '#7568c2',
    500: '#222fa7',
    950: '#000000',
  },
}
SCSS
$custom: #222fa7;
$custom-light: #7568c2;
$custom-dark: #000000;
JSON
{
  "hex": "#222fa7",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 234.135,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38826,
    "c": 0.1889,
    "h": 269.5
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#222FA7
secondary
#C5BB60
accent
#D83FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #222FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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