#222793#222793

#222793 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.172 H 271.6°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#222793
RGBrgb(34, 39, 147)
HSLhsl(237, 62%, 35%)
HSVhsv(237, 77%, 58%)
CMYKcmyk(76.9%, 73.5%, 0%, 42.4%)
CIE-LABlab(23.33, 36.51, -59.38)
CIE-LCHlch(23.33, 69.70, 301.59°)
OKLaboklab(35.43% 0.0047 -0.1719)
OKLCHoklch(35.43% 0.172 271.6)
XYZxyz(6.6499, 3.8970, 27.9998)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222793 #938E22
analogous
#225F93 #222793 #552293
triadic
#222793 #932227 #279322
tetradic
#222793 #93225F #938E22 #229355
square
#222793 #93225F #938E22 #229355
split-complementary
#222793 #935522 #5F9322
monochromatic
#0B0D30 #171A61 #222793 #2D34C5 #575DD8

Accessibility & contrast

On white

11.80
#222793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#222793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222793
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222793#FFFFFF#000000##FFFFFF
##2227931.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222793;
/* rgb */ color: rgb(34, 39, 147);
/* oklch */ color: oklch(35.4% 0.172 271.6);
Tailwind
colors: {
  custom: {
    50: '#7162b4',
    500: '#222793',
    950: '#000000',
  },
}
SCSS
$custom: #222793;
$custom-light: #7162b4;
$custom-dark: #000000;
JSON
{
  "hex": "#222793",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 147
  },
  "hsl": {
    "h": 237.345,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35429,
    "c": 0.17194,
    "h": 271.6
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#222793
secondary
#BCB855
accent
#DE42E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222793

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

Preview Lab → · Contrast checker → · Palette generator →

#222793 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva