#222893#222893

#222893 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.171 H 271.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#222893
RGBrgb(34, 40, 147)
HSLhsl(237, 62%, 35%)
HSVhsv(237, 77%, 58%)
CMYKcmyk(76.9%, 72.8%, 0%, 42.4%)
CIE-LABlab(23.55, 35.90, -59.01)
CIE-LCHlch(23.55, 69.07, 301.31°)
OKLaboklab(35.59% 0.0042 -0.1708)
OKLCHoklch(35.59% 0.171 271.4)
XYZxyz(6.6832, 3.9635, 28.0109)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222893 #938D22
analogous
#226093 #222893 #542293
triadic
#222893 #932228 #289322
tetradic
#222893 #932260 #938D22 #229354
square
#222893 #932260 #938D22 #229354
split-complementary
#222893 #935422 #609322
monochromatic
#0B0D30 #171A61 #222893 #2D36C5 #575ED8

Accessibility & contrast

On white

11.71
#222893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#222893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222893
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222893#FFFFFF#000000##FFFFFF
##2228931.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222893;
/* rgb */ color: rgb(34, 40, 147);
/* oklch */ color: oklch(35.6% 0.171 271.4);
Tailwind
colors: {
  custom: {
    50: '#7163b4',
    500: '#222893',
    950: '#000000',
  },
}
SCSS
$custom: #222893;
$custom-light: #7163b4;
$custom-dark: #000000;
JSON
{
  "hex": "#222893",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 236.814,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.17085,
    "h": 271.4
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

primary
#222893
secondary
#BCB755
accent
#DD42E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222893

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

Preview Lab → · Contrast checker → · Palette generator →

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