#221781#221781

#221781 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.165 H 275.6°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#221781
RGBrgb(34, 23, 129)
HSLhsl(246, 70%, 30%)
HSVhsv(246, 82%, 51%)
CMYKcmyk(73.6%, 82.2%, 0%, 49.4%)
CIE-LABlab(18.09, 39.51, -56.77)
CIE-LCHlch(18.09, 69.17, 304.83°)
OKLaboklab(31.13% 0.016 -0.1641)
OKLCHoklch(31.13% 0.165 275.6)
XYZxyz(4.9272, 2.5374, 20.9947)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221781 #768117
analogous
#174181 #221781 #571781
triadic
#221781 #812217 #178122
tetradic
#221781 #811741 #768117 #178157
square
#221781 #811741 #768117 #178157
split-complementary
#221781 #815717 #418117
monochromatic
#07051A #140E4D #221781 #3020B5 #4837DB

Accessibility & contrast

On white

13.93
#221781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#221781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221781
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221781#FFFFFF#000000##FFFFFF
##2217811.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #221781;
/* rgb */ color: rgb(34, 23, 129);
/* oklch */ color: oklch(31.1% 0.165 275.6);
Tailwind
colors: {
  custom: {
    50: '#6e57a7',
    500: '#221781',
    950: '#000000',
  },
}
SCSS
$custom: #221781;
$custom-light: #6e57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#221781",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 246.226,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31131,
    "c": 0.16492,
    "h": 275.6
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#221781
secondary
#A9B53E
accent
#ED3BDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221781

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

Preview Lab → · Contrast checker → · Palette generator →

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