#222768#222768

#222768 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.1% C 0.112 H 274.5°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#222768
RGBrgb(34, 39, 104)
HSLhsl(236, 51%, 27%)
HSVhsv(236, 67%, 41%)
CMYKcmyk(67.3%, 62.5%, 0%, 59.2%)
CIE-LABlab(19.18, 20.55, -38.89)
CIE-LCHlch(19.18, 43.99, 297.86°)
OKLaboklab(31.15% 0.0088 -0.1119)
OKLCHoklch(31.15% 0.112 274.5)
XYZxyz(3.8831, 2.7903, 13.4280)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222768 #686322
analogous
#224A68 #222768 #402268
triadic
#222768 #682227 #276822
tetradic
#222768 #68224A #686322 #226840
square
#222768 #68224A #686322 #226840
split-complementary
#222768 #684022 #4A6822
monochromatic
#080917 #13163A #222768 #313896 #434CC2

Accessibility & contrast

On white

13.48
#222768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#222768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222768
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222768#FFFFFF#000000##FFFFFF
##2227681.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#002C67
Tritanopia (blue-blind)
#003743
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222768;
/* rgb */ color: rgb(34, 39, 104);
/* oklch */ color: oklch(31.1% 0.112 274.5);
Tailwind
colors: {
  custom: {
    50: '#666194',
    500: '#222768',
    950: '#000000',
  },
}
SCSS
$custom: #222768;
$custom-light: #666194;
$custom-dark: #000000;
JSON
{
  "hex": "#222768",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 104
  },
  "hsl": {
    "h": 235.714,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31149,
    "c": 0.11226,
    "h": 274.5
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#222768
secondary
#9C964A
accent
#D04EDA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #222768

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

Preview Lab → · Contrast checker → · Palette generator →

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