#222894#222894

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

Color values

HEX#222894
RGBrgb(34, 40, 148)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 77%, 58%)
CMYKcmyk(77%, 73%, 0%, 42%)
CIE-LABlab(23.66, 36.25, -59.45)
CIE-LCHlch(23.66, 69.63, 301.37°)
OKLaboklab(35.7% 0.0041 -0.1721)
OKLCHoklch(35.7% 0.172 271.4)
XYZxyz(6.7620, 3.9951, 28.4260)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222894 #948E22
analogous
#226194 #222894 #552294
triadic
#222894 #942228 #289422
tetradic
#222894 #942261 #948E22 #229455
square
#222894 #942261 #948E22 #229455
split-complementary
#222894 #945522 #619422
monochromatic
#0B0D30 #171B62 #222894 #2D35C6 #585FD9

Accessibility & contrast

On white

11.67
#222894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#222894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222894
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222894#FFFFFF#000000##FFFFFF
##2228941.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222894;
/* rgb */ color: rgb(34, 40, 148);
/* oklch */ color: oklch(35.7% 0.172 271.4);
Tailwind
colors: {
  custom: {
    50: '#7163b5',
    500: '#222894',
    950: '#000000',
  },
}
SCSS
$custom: #222894;
$custom-light: #7163b5;
$custom-dark: #000000;
JSON
{
  "hex": "#222894",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 236.842,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35695,
    "c": 0.17215,
    "h": 271.4
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#222894
secondary
#BDB755
accent
#DD42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222894

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

Preview Lab → · Contrast checker → · Palette generator →

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