#221783#221783

#221783 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.167 H 275.3°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#221783
RGBrgb(34, 23, 131)
HSLhsl(246, 70%, 30%)
HSVhsv(246, 82%, 51%)
CMYKcmyk(74%, 82.4%, 0%, 48.6%)
CIE-LABlab(18.33, 40.16, -57.64)
CIE-LCHlch(18.33, 70.25, 304.86°)
OKLaboklab(31.37% 0.0155 -0.1667)
OKLCHoklch(31.37% 0.167 275.3)
XYZxyz(5.0615, 2.5911, 21.7017)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221783 #788317
analogous
#174283 #221783 #581783
triadic
#221783 #832217 #178322
tetradic
#221783 #831742 #788317 #178358
square
#221783 #831742 #788317 #178358
split-complementary
#221783 #835817 #428317
monochromatic
#07051B #140E4F #221783 #3020B7 #4938DC

Accessibility & contrast

On white

13.83
#221783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#221783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221783
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221783#FFFFFF#000000##FFFFFF
##2217831.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002881
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #221783;
/* rgb */ color: rgb(34, 23, 131);
/* oklch */ color: oklch(31.4% 0.167 275.3);
Tailwind
colors: {
  custom: {
    50: '#6e57a8',
    500: '#221783',
    950: '#000000',
  },
}
SCSS
$custom: #221783;
$custom-light: #6e57a8;
$custom-dark: #000000;
JSON
{
  "hex": "#221783",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 246.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31367,
    "c": 0.16739,
    "h": 275.3
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#221783
secondary
#ABB73F
accent
#ED3BDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #221783

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

Preview Lab → · Contrast checker → · Palette generator →

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