#221687#221687

#221687 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.173 H 274.9°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#221687
RGBrgb(34, 22, 135)
HSLhsl(246, 72%, 31%)
HSVhsv(246, 84%, 53%)
CMYKcmyk(74.8%, 83.7%, 0%, 47.1%)
CIE-LABlab(18.64, 41.94, -59.65)
CIE-LCHlch(18.64, 72.92, 305.11°)
OKLaboklab(31.73% 0.0147 -0.1725)
OKLCHoklch(31.73% 0.173 274.9)
XYZxyz(5.3183, 2.6626, 23.1506)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221687 #7B8716
analogous
#164287 #221687 #5A1687
triadic
#221687 #872216 #168722
tetradic
#221687 #871642 #7B8716 #16875A
square
#221687 #871642 #7B8716 #16875A
split-complementary
#221687 #875A16 #428716
monochromatic
#07051E #150D52 #221687 #2F1FBC #4A39DF

Accessibility & contrast

On white

13.70
#221687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#221687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221687
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221687#FFFFFF#000000##FFFFFF
##2216871.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #221687;
/* rgb */ color: rgb(34, 22, 135);
/* oklch */ color: oklch(31.7% 0.173 274.9);
Tailwind
colors: {
  custom: {
    50: '#6f57ab',
    500: '#221687',
    950: '#000000',
  },
}
SCSS
$custom: #221687;
$custom-light: #6f57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#221687",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 246.372,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31725,
    "c": 0.1731,
    "h": 274.9
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#221687
secondary
#AEBB3E
accent
#EF39DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221687

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

Preview Lab → · Contrast checker → · Palette generator →

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