#222FA5#222FA5

#222FA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.186 H 269.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#222FA5
RGBrgb(34, 47, 165)
HSLhsl(234, 66%, 39%)
HSVhsv(234, 79%, 65%)
CMYKcmyk(79.4%, 71.5%, 0%, 35.3%)
CIE-LABlab(26.99, 38.01, -64.34)
CIE-LCHlch(26.99, 74.73, 300.57°)
OKLaboklab(38.62% -0.0014 -0.1864)
OKLCHoklch(38.62% 0.186 269.6)
XYZxyz(8.4654, 5.0888, 36.1261)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222FA5 #A59822
analogous
#2271A5 #222FA5 #5722A5
triadic
#222FA5 #A5222F #2FA522
tetradic
#222FA5 #A52271 #A59822 #22A557
square
#222FA5 #A52271 #A59822 #22A557
split-complementary
#222FA5 #A55722 #71A522
monochromatic
#0D1240 #182172 #222FA5 #3040D4 #636FDF

Accessibility & contrast

On white

10.41
#222FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#222FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222FA5
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222FA5#FFFFFF#000000##FFFFFF
##222FA51.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #222fa5;
/* rgb */ color: rgb(34, 47, 165);
/* oklch */ color: oklch(38.6% 0.186 269.6);
Tailwind
colors: {
  custom: {
    50: '#7568c1',
    500: '#222fa5',
    950: '#000000',
  },
}
SCSS
$custom: #222fa5;
$custom-light: #7568c1;
$custom-dark: #000000;
JSON
{
  "hex": "#222fa5",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 234.046,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38617,
    "c": 0.18637,
    "h": 269.6
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#222FA5
secondary
#C4BA5F
accent
#D83FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #222FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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