#222780#222780

#222780 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.147 H 272.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#222780
RGBrgb(34, 39, 128)
HSLhsl(237, 58%, 32%)
HSVhsv(237, 73%, 50%)
CMYKcmyk(73.4%, 69.5%, 0%, 49.8%)
CIE-LABlab(21.39, 29.62, -50.69)
CIE-LCHlch(21.39, 58.71, 300.29°)
OKLaboklab(33.45% 0.0073 -0.1465)
OKLCHoklch(33.45% 0.147 272.8)
XYZxyz(5.2802, 3.3491, 20.7861)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222780 #807B22
analogous
#225680 #222780 #4C2280
triadic
#222780 #802227 #278022
tetradic
#222780 #802256 #807B22 #22804C
square
#222780 #802256 #807B22 #22804C
split-complementary
#222780 #804C22 #568022
monochromatic
#080A1F #151850 #222780 #2F36B0 #4D54D0

Accessibility & contrast

On white

12.57
#222780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#222780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222780
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222780#FFFFFF#000000##FFFFFF
##2227801.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222780;
/* rgb */ color: rgb(34, 39, 128);
/* oklch */ color: oklch(33.4% 0.147 272.8);
Tailwind
colors: {
  custom: {
    50: '#6c61a6',
    500: '#222780',
    950: '#000000',
  },
}
SCSS
$custom: #222780;
$custom-light: #6c61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#222780",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 236.809,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33449,
    "c": 0.1467,
    "h": 272.8
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#222780
secondary
#B2AD4B
accent
#D947E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #222780

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

Preview Lab → · Contrast checker → · Palette generator →

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