#222697#222697

#222697 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.178 H 271.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#222697
RGBrgb(34, 38, 151)
HSLhsl(238, 63%, 36%)
HSVhsv(238, 77%, 59%)
CMYKcmyk(77.5%, 74.8%, 0%, 40.8%)
CIE-LABlab(23.54, 38.53, -61.49)
CIE-LCHlch(23.54, 72.57, 302.07°)
OKLaboklab(35.71% 0.0046 -0.178)
OKLCHoklch(35.71% 0.178 271.5)
XYZxyz(6.9368, 3.9599, 29.6709)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222697 #979322
analogous
#226197 #222697 #592297
triadic
#222697 #972226 #269722
tetradic
#222697 #972261 #979322 #229759
square
#222697 #972261 #979322 #229759
split-complementary
#222697 #975922 #619722
monochromatic
#0C0D33 #171965 #222697 #2D33C9 #5A5EDA

Accessibility & contrast

On white

11.72
#222697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#222697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222697
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222697#FFFFFF#000000##FFFFFF
##2226971.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222697;
/* rgb */ color: rgb(34, 38, 151);
/* oklch */ color: oklch(35.7% 0.178 271.5);
Tailwind
colors: {
  custom: {
    50: '#7261b7',
    500: '#222697',
    950: '#000000',
  },
}
SCSS
$custom: #222697;
$custom-light: #7261b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222697",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 237.949,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35707,
    "c": 0.17809,
    "h": 271.5
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#222697
secondary
#BEBA57
accent
#E142E6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222697

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

Preview Lab → · Contrast checker → · Palette generator →

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