#221273#221273

#221273 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.9% C 0.152 H 278.5°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#221273
RGBrgb(34, 18, 115)
HSLhsl(250, 73%, 26%)
HSVhsv(250, 84%, 45%)
CMYKcmyk(70.4%, 84.3%, 0%, 54.9%)
CIE-LABlab(15.54, 37.52, -52.02)
CIE-LCHlch(15.54, 64.14, 305.80°)
OKLaboklab(28.87% 0.0225 -0.1503)
OKLCHoklch(28.87% 0.152 278.5)
XYZxyz(3.9695, 2.0102, 16.3951)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221273 #637312
analogous
#123273 #221273 #521273
triadic
#221273 #732212 #127322
tetradic
#221273 #731232 #637312 #127352
square
#221273 #731232 #637312 #127352
split-complementary
#221273 #735212 #327312
monochromatic
#08041A #120A3E #221273 #321AA8 #4123DD

Accessibility & contrast

On white

14.98
#221273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#221273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221273
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221273#FFFFFF#000000##FFFFFF
##2212731.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002371
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #221273;
/* rgb */ color: rgb(34, 18, 115);
/* oklch */ color: oklch(28.9% 0.152 278.5);
Tailwind
colors: {
  custom: {
    50: '#6b539c',
    500: '#221273',
    950: '#000000',
  },
}
SCSS
$custom: #221273;
$custom-light: #6b539c;
$custom-dark: #000000;
JSON
{
  "hex": "#221273",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 249.897,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28873,
    "c": 0.15194,
    "h": 278.5
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#221273
secondary
#97AA37
accent
#F038D1
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #221273

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

Preview Lab → · Contrast checker → · Palette generator →

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