#222CA5#222CA5

#222CA5 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.190 H 270.0°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#222CA5
RGBrgb(34, 44, 165)
HSLhsl(235, 66%, 39%)
HSVhsv(235, 79%, 65%)
CMYKcmyk(79.4%, 73.3%, 0%, 35.3%)
CIE-LABlab(26.32, 39.84, -65.44)
CIE-LCHlch(26.32, 76.61, 301.33°)
OKLaboklab(38.14% -0.0001 -0.1895)
OKLCHoklch(38.14% 0.19 270)
XYZxyz(8.3496, 4.8571, 36.0875)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222CA5 #A59B22
analogous
#226EA5 #222CA5 #5A22A5
triadic
#222CA5 #A5222C #2CA522
tetradic
#222CA5 #A5226E #A59B22 #22A55A
square
#222CA5 #A5226E #A59B22 #22A55A
split-complementary
#222CA5 #A55A22 #6EA522
monochromatic
#0D1140 #181E72 #222CA5 #303CD4 #636CDF

Accessibility & contrast

On white

10.65
#222CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#222CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222CA5
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222CA5#FFFFFF#000000##FFFFFF
##222CA51.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #222ca5;
/* rgb */ color: rgb(34, 44, 165);
/* oklch */ color: oklch(38.1% 0.190 270.0);
Tailwind
colors: {
  custom: {
    50: '#7566c1',
    500: '#222ca5',
    950: '#000000',
  },
}
SCSS
$custom: #222ca5;
$custom-light: #7566c1;
$custom-dark: #000000;
JSON
{
  "hex": "#222ca5",
  "rgb": {
    "r": 34,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 235.42,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38141,
    "c": 0.18953,
    "h": 270
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#222CA5
secondary
#C4BC5F
accent
#DC3FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #222CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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