#222BA7#222BA7

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

Color values

HEX#222BA7
RGBrgb(34, 43, 167)
HSLhsl(236, 66%, 39%)
HSVhsv(236, 80%, 65%)
CMYKcmyk(79.6%, 74.3%, 0%, 34.5%)
CIE-LABlab(26.32, 41.14, -66.65)
CIE-LCHlch(26.32, 78.32, 301.68°)
OKLaboklab(38.2% 0 -0.193)
OKLCHoklch(38.2% 0.193 270)
XYZxyz(8.4962, 4.8569, 37.0414)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222BA7 #A79E22
analogous
#226EA7 #222BA7 #5C22A7
triadic
#222BA7 #A7222B #2BA722
tetradic
#222BA7 #A7226E #A79E22 #22A75C
square
#222BA7 #A7226E #A79E22 #22A75C
split-complementary
#222BA7 #A75C22 #6EA722
monochromatic
#0D1141 #181E74 #222BA7 #313CD5 #646CDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##222BA7#FFFFFF#000000##FFFFFF
##222BA71.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)
#0045AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #222ba7;
/* rgb */ color: rgb(34, 43, 167);
/* oklch */ color: oklch(38.2% 0.193 270.0);
Tailwind
colors: {
  custom: {
    50: '#7665c2',
    500: '#222ba7',
    950: '#000000',
  },
}
SCSS
$custom: #222ba7;
$custom-light: #7665c2;
$custom-dark: #000000;
JSON
{
  "hex": "#222ba7",
  "rgb": {
    "r": 34,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 235.94,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38204,
    "c": 0.19304,
    "h": 270
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#222BA7
secondary
#C5BE60
accent
#DE3FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #222BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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