#222174#222174

#222174 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.137 H 275.4°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#222174
RGBrgb(34, 33, 116)
HSLhsl(241, 56%, 29%)
HSVhsv(241, 72%, 45%)
CMYKcmyk(70.7%, 71.6%, 0%, 54.5%)
CIE-LABlab(18.75, 29.13, -47.38)
CIE-LCHlch(18.75, 55.62, 301.59°)
OKLaboklab(31.18% 0.013 -0.1368)
OKLCHoklch(31.18% 0.137 275.4)
XYZxyz(4.3549, 2.6884, 16.8090)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222174 #737421
analogous
#214A74 #222174 #4C2174
triadic
#222174 #742221 #217422
tetradic
#222174 #74214A #737421 #21744C
square
#222174 #74214A #737421 #21744C
split-complementary
#222174 #744C21 #4A7421
monochromatic
#070718 #141344 #222174 #302FA4 #4745CA

Accessibility & contrast

On white

13.66
#222174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#222174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222174
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222174#FFFFFF#000000##FFFFFF
##2221741.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #222174;
/* rgb */ color: rgb(34, 33, 116);
/* oklch */ color: oklch(31.2% 0.137 275.4);
Tailwind
colors: {
  custom: {
    50: '#6a5d9d',
    500: '#222174',
    950: '#000000',
  },
}
SCSS
$custom: #222174;
$custom-light: #6a5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#222174",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 240.723,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31176,
    "c": 0.13745,
    "h": 275.4
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#222174
secondary
#A6A749
accent
#DF49DD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222174

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

Preview Lab → · Contrast checker → · Palette generator →

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