#222291#222291

#222291 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.175 H 272.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#222291
RGBrgb(34, 34, 145)
HSLhsl(240, 62%, 35%)
HSVhsv(240, 77%, 57%)
CMYKcmyk(76.6%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.04, 38.80, -60.26)
CIE-LCHlch(22.04, 71.67, 302.78°)
OKLaboklab(34.45% 0.0074 -0.1744)
OKLCHoklch(34.45% 0.175 272.4)
XYZxyz(6.3408, 3.5278, 27.1293)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222291 #919122
analogous
#225991 #222291 #592291
triadic
#222291 #912222 #229122
tetradic
#222291 #912259 #919122 #229159
square
#222291 #912259 #919122 #229159
split-complementary
#222291 #915922 #599122
monochromatic
#0B0B2E #16165F #222291 #2E2EC3 #5656D7

Accessibility & contrast

On white

12.31
#222291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222291
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222291#FFFFFF#000000##FFFFFF
##2222911.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#002F8F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222291;
/* rgb */ color: rgb(34, 34, 145);
/* oklch */ color: oklch(34.5% 0.175 272.4);
Tailwind
colors: {
  custom: {
    50: '#715fb2',
    500: '#222291',
    950: '#000000',
  },
}
SCSS
$custom: #222291;
$custom-light: #715fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#222291",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 240,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34451,
    "c": 0.17456,
    "h": 272.4
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#222291
secondary
#BBBB53
accent
#E543E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #222291

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

Preview Lab → · Contrast checker → · Palette generator →

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