#222FA8#222FA8

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

Color values

HEX#222FA8
RGBrgb(34, 47, 168)
HSLhsl(234, 66%, 40%)
HSVhsv(234, 80%, 66%)
CMYKcmyk(79.8%, 72%, 0%, 34.1%)
CIE-LABlab(27.30, 39.08, -65.65)
CIE-LCHlch(27.30, 76.40, 300.77°)
OKLaboklab(38.93% -0.0018 -0.1902)
OKLCHoklch(38.93% 0.19 269.5)
XYZxyz(8.7417, 5.1993, 37.5810)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222FA8 #A89B22
analogous
#2272A8 #222FA8 #5822A8
triadic
#222FA8 #A8222F #2FA822
tetradic
#222FA8 #A82272 #A89B22 #22A858
square
#222FA8 #A82272 #A89B22 #22A858
split-complementary
#222FA8 #A85822 #72A822
monochromatic
#0D1342 #182175 #222FA8 #3242D5 #6571E0

Accessibility & contrast

On white

10.29
#222FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#222FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222FA8
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222FA8#FFFFFF#000000##FFFFFF
##222FA81.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222fa8;
/* rgb */ color: rgb(34, 47, 168);
/* oklch */ color: oklch(38.9% 0.190 269.5);
Tailwind
colors: {
  custom: {
    50: '#7568c3',
    500: '#222fa8',
    950: '#000000',
  },
}
SCSS
$custom: #222fa8;
$custom-light: #7568c3;
$custom-dark: #000000;
JSON
{
  "hex": "#222fa8",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 234.179,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38931,
    "c": 0.19016,
    "h": 269.5
  },
  "luminance": 0.052
}

Semantic roles & 50–950 ramp

primary
#222FA8
secondary
#C5BB61
accent
#D93FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #222FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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