#221789#221789

#221789 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.175 H 274.5°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#221789
RGBrgb(34, 23, 137)
HSLhsl(246, 71%, 31%)
HSVhsv(246, 83%, 54%)
CMYKcmyk(75.2%, 83.2%, 0%, 46.3%)
CIE-LABlab(19.05, 42.08, -60.22)
CIE-LCHlch(19.05, 73.47, 304.94°)
OKLaboklab(32.08% 0.0138 -0.1742)
OKLCHoklch(32.08% 0.175 274.5)
XYZxyz(5.4799, 2.7585, 23.9057)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221789 #7E8917
analogous
#174589 #221789 #5B1789
triadic
#221789 #892217 #178922
tetradic
#221789 #891745 #7E8917 #17895B
square
#221789 #891745 #7E8917 #17895B
split-complementary
#221789 #895B17 #458917
monochromatic
#080520 #150E55 #221789 #2F20BD #4C3CDE

Accessibility & contrast

On white

13.53
#221789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#221789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221789
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221789#FFFFFF#000000##FFFFFF
##2217891.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #221789;
/* rgb */ color: rgb(34, 23, 137);
/* oklch */ color: oklch(32.1% 0.175 274.5);
Tailwind
colors: {
  custom: {
    50: '#7058ad',
    500: '#221789',
    950: '#000000',
  },
}
SCSS
$custom: #221789;
$custom-light: #7058ad;
$custom-dark: #000000;
JSON
{
  "hex": "#221789",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 245.789,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3208,
    "c": 0.17471,
    "h": 274.5
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#221789
secondary
#B1BD3F
accent
#EE3ADD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221789

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

Preview Lab → · Contrast checker → · Palette generator →

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