#221780#221780

#221780 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.164 H 275.7°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#221780
RGBrgb(34, 23, 128)
HSLhsl(246, 70%, 30%)
HSVhsv(246, 82%, 50%)
CMYKcmyk(73.4%, 82%, 0%, 49.8%)
CIE-LABlab(17.97, 39.18, -56.34)
CIE-LCHlch(17.97, 68.62, 304.82°)
OKLaboklab(31.01% 0.0163 -0.1629)
OKLCHoklch(31.01% 0.164 275.7)
XYZxyz(4.8611, 2.5109, 20.6464)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221780 #758017
analogous
#174080 #221780 #571780
triadic
#221780 #802217 #178022
tetradic
#221780 #801740 #758017 #178057
square
#221780 #801740 #758017 #178057
split-complementary
#221780 #805717 #408017
monochromatic
#07051A #140E4C #221780 #3020B4 #4836DB

Accessibility & contrast

On white

13.98
#221780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#221780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221780
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221780#FFFFFF#000000##FFFFFF
##2217801.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #221780;
/* rgb */ color: rgb(34, 23, 128);
/* oklch */ color: oklch(31.0% 0.164 275.7);
Tailwind
colors: {
  custom: {
    50: '#6e57a6',
    500: '#221780',
    950: '#000000',
  },
}
SCSS
$custom: #221780;
$custom-light: #6e57a6;
$custom-dark: #000000;
JSON
{
  "hex": "#221780",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 246.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31013,
    "c": 0.16368,
    "h": 275.7
  },
  "luminance": 0.02511
}

Semantic roles & 50–950 ramp

primary
#221780
secondary
#A8B43E
accent
#EC3BDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #221780

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

Preview Lab → · Contrast checker → · Palette generator →

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