#222883#222883

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

Color values

HEX#222883
RGBrgb(34, 40, 131)
HSLhsl(236, 59%, 32%)
HSVhsv(236, 74%, 51%)
CMYKcmyk(74%, 69.5%, 0%, 48.6%)
CIE-LABlab(21.93, 30.07, -51.70)
CIE-LCHlch(21.93, 59.81, 300.18°)
OKLaboklab(33.93% 0.0063 -0.1495)
OKLCHoklch(33.93% 0.15 272.4)
XYZxyz(5.5138, 3.4958, 21.8525)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222883 #837D22
analogous
#225883 #222883 #4D2283
triadic
#222883 #832228 #288322
tetradic
#222883 #832258 #837D22 #22834D
square
#222883 #832258 #837D22 #22834D
split-complementary
#222883 #834D22 #588322
monochromatic
#090A22 #151952 #222883 #2F37B4 #4E56D1

Accessibility & contrast

On white

12.36
#222883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222883
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222883#FFFFFF#000000##FFFFFF
##2228831.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222883;
/* rgb */ color: rgb(34, 40, 131);
/* oklch */ color: oklch(33.9% 0.150 272.4);
Tailwind
colors: {
  custom: {
    50: '#6d62a8',
    500: '#222883',
    950: '#000000',
  },
}
SCSS
$custom: #222883;
$custom-light: #6d62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#222883",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 236.289,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33929,
    "c": 0.1496,
    "h": 272.4
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#222883
secondary
#B4AE4C
accent
#D846E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222883

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

Preview Lab → · Contrast checker → · Palette generator →

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