#222CA1#222CA1

#222CA1 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.184 H 270.1°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#222CA1
RGBrgb(34, 44, 161)
HSLhsl(235, 65%, 38%)
HSVhsv(235, 79%, 63%)
CMYKcmyk(78.9%, 72.7%, 0%, 36.9%)
CIE-LABlab(25.90, 38.42, -63.70)
CIE-LCHlch(25.90, 74.40, 301.10°)
OKLaboklab(37.71% 0.0004 -0.1845)
OKLCHoklch(37.71% 0.184 270.1)
XYZxyz(7.9912, 4.7138, 34.2000)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222CA1 #A19722
analogous
#226BA1 #222CA1 #5822A1
triadic
#222CA1 #A1222C #2CA122
tetradic
#222CA1 #A1226B #A19722 #22A158
square
#222CA1 #A1226B #A19722 #22A158
split-complementary
#222CA1 #A15822 #6BA122
monochromatic
#0D103C #171E6E #222CA1 #2D3AD3 #606ADD

Accessibility & contrast

On white

10.81
#222CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#222CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222CA1
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222CA1#FFFFFF#000000##FFFFFF
##222CA11.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #222ca1;
/* rgb */ color: rgb(34, 44, 161);
/* oklch */ color: oklch(37.7% 0.184 270.1);
Tailwind
colors: {
  custom: {
    50: '#7466be',
    500: '#222ca1',
    950: '#000000',
  },
}
SCSS
$custom: #222ca1;
$custom-light: #7466be;
$custom-dark: #000000;
JSON
{
  "hex": "#222ca1",
  "rgb": {
    "r": 34,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 235.276,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37714,
    "c": 0.18449,
    "h": 270.1
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#222CA1
secondary
#C2BA5D
accent
#DB40E8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #222CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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