#222874#222874

#222874 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.129 H 273.3°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#222874
RGBrgb(34, 40, 116)
HSLhsl(236, 55%, 29%)
HSVhsv(236, 71%, 45%)
CMYKcmyk(70.7%, 65.5%, 0%, 54.5%)
CIE-LABlab(20.51, 24.44, -44.49)
CIE-LCHlch(20.51, 50.76, 298.78°)
OKLaboklab(32.46% 0.0075 -0.1283)
OKLCHoklch(32.46% 0.129 273.3)
XYZxyz(4.5698, 3.1182, 16.8807)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222874 #746E22
analogous
#225174 #222874 #452274
triadic
#222874 #742228 #287422
tetradic
#222874 #742251 #746E22 #227445
square
#222874 #742251 #746E22 #227445
split-complementary
#222874 #744522 #517422
monochromatic
#070818 #141845 #222874 #3038A3 #4751C9

Accessibility & contrast

On white

12.93
#222874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#222874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222874
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222874#FFFFFF#000000##FFFFFF
##2228741.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222874;
/* rgb */ color: rgb(34, 40, 116);
/* oklch */ color: oklch(32.5% 0.129 273.3);
Tailwind
colors: {
  custom: {
    50: '#69629d',
    500: '#222874',
    950: '#000000',
  },
}
SCSS
$custom: #222874;
$custom-light: #69629d;
$custom-dark: #000000;
JSON
{
  "hex": "#222874",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 235.61,
    "s": 54.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32458,
    "c": 0.12857,
    "h": 273.3
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#222874
secondary
#A7A04B
accent
#D34ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222874

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

Preview Lab → · Contrast checker → · Palette generator →

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