#222785#222785

#222785 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.153 H 272.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#222785
RGBrgb(34, 39, 133)
HSLhsl(237, 59%, 33%)
HSVhsv(237, 74%, 52%)
CMYKcmyk(74.4%, 70.7%, 0%, 47.8%)
CIE-LABlab(21.89, 31.46, -53.03)
CIE-LCHlch(21.89, 61.66, 300.68°)
OKLaboklab(33.96% 0.0067 -0.1533)
OKLCHoklch(33.96% 0.153 272.5)
XYZxyz(5.6174, 3.4840, 22.5622)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222785 #858022
analogous
#225885 #222785 #4F2285
triadic
#222785 #852227 #278522
tetradic
#222785 #852258 #858022 #22854F
square
#222785 #852258 #858022 #22854F
split-complementary
#222785 #854F22 #588522
monochromatic
#090A24 #161954 #222785 #2E35B6 #4F56D2

Accessibility & contrast

On white

12.37
#222785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222785
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222785#FFFFFF#000000##FFFFFF
##2227851.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222785;
/* rgb */ color: rgb(34, 39, 133);
/* oklch */ color: oklch(34.0% 0.153 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d61a9',
    500: '#222785',
    950: '#000000',
  },
}
SCSS
$custom: #222785;
$custom-light: #6d61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#222785",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 236.97,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33959,
    "c": 0.15349,
    "h": 272.5
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#222785
secondary
#B6B04D
accent
#DB45E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222785

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

Preview Lab → · Contrast checker → · Palette generator →

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