#221678#221678

#221678 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.155 H 277.1°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#221678
RGBrgb(34, 22, 120)
HSLhsl(247, 69%, 28%)
HSVhsv(247, 82%, 47%)
CMYKcmyk(71.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(16.84, 37.09, -53.09)
CIE-LCHlch(16.84, 64.76, 304.94°)
OKLaboklab(29.95% 0.019 -0.1534)
OKLCHoklch(29.95% 0.155 277.1)
XYZxyz(4.3357, 2.2696, 17.9752)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221678 #6C7816
analogous
#163B78 #221678 #531678
triadic
#221678 #782216 #167822
tetradic
#221678 #78163B #6C7816 #167853
square
#221678 #78163B #6C7816 #167853
split-complementary
#221678 #785316 #3B7816
monochromatic
#07051A #130D44 #221678 #311FAC #442FD9

Accessibility & contrast

On white

14.44
#221678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#221678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221678
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221678#FFFFFF#000000##FFFFFF
##2216781.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #221678;
/* rgb */ color: rgb(34, 22, 120);
/* oklch */ color: oklch(30.0% 0.155 277.1);
Tailwind
colors: {
  custom: {
    50: '#6c56a0',
    500: '#221678',
    950: '#000000',
  },
}
SCSS
$custom: #221678;
$custom-light: #6c56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#221678",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 247.347,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29952,
    "c": 0.15459,
    "h": 277.1
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#221678
secondary
#A0AD3C
accent
#EC3CD6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #221678

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

Preview Lab → · Contrast checker → · Palette generator →

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