#222374#222374

#222374 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.135 H 274.9°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#222374
RGBrgb(34, 35, 116)
HSLhsl(239, 55%, 29%)
HSVhsv(239, 71%, 45%)
CMYKcmyk(70.7%, 69.8%, 0%, 54.5%)
CIE-LABlab(19.24, 27.82, -46.58)
CIE-LCHlch(19.24, 54.25, 300.85°)
OKLaboklab(31.53% 0.0115 -0.1345)
OKLCHoklch(31.53% 0.135 274.9)
XYZxyz(4.4121, 2.8027, 16.8281)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222374 #747322
analogous
#224C74 #222374 #4A2274
triadic
#222374 #742223 #237422
tetradic
#222374 #74224C #747322 #22744A
square
#222374 #74224C #747322 #22744A
split-complementary
#222374 #744A22 #4C7422
monochromatic
#070718 #141545 #222374 #3031A3 #4749C9

Accessibility & contrast

On white

13.46
#222374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222374
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222374#FFFFFF#000000##FFFFFF
##2223741.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222374;
/* rgb */ color: rgb(34, 35, 116);
/* oklch */ color: oklch(31.5% 0.135 274.9);
Tailwind
colors: {
  custom: {
    50: '#695e9d',
    500: '#222374',
    950: '#000000',
  },
}
SCSS
$custom: #222374;
$custom-light: #695e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#222374",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 116
  },
  "hsl": {
    "h": 239.268,
    "s": 54.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31527,
    "c": 0.13499,
    "h": 274.9
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#222374
secondary
#A7A64B
accent
#DC4ADE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222374

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

Preview Lab → · Contrast checker → · Palette generator →

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