#221274#221274

#221274 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.0% C 0.153 H 278.3°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#221274
RGBrgb(34, 18, 116)
HSLhsl(250, 73%, 26%)
HSVhsv(250, 84%, 45%)
CMYKcmyk(70.7%, 84.5%, 0%, 54.5%)
CIE-LABlab(15.66, 37.84, -52.47)
CIE-LCHlch(15.66, 64.69, 305.80°)
OKLaboklab(28.99% 0.0222 -0.1516)
OKLCHoklch(28.99% 0.153 278.3)
XYZxyz(4.0274, 2.0333, 16.6998)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221274 #647412
analogous
#123374 #221274 #531274
triadic
#221274 #742212 #127422
tetradic
#221274 #741233 #647412 #127453
square
#221274 #741233 #647412 #127453
split-complementary
#221274 #745312 #337412
monochromatic
#08041A #120A3F #221274 #321AA9 #4223DD

Accessibility & contrast

On white

14.93
#221274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#221274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221274
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221274#FFFFFF#000000##FFFFFF
##2212741.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #221274;
/* rgb */ color: rgb(34, 18, 116);
/* oklch */ color: oklch(29.0% 0.153 278.3);
Tailwind
colors: {
  custom: {
    50: '#6b549d',
    500: '#221274',
    950: '#000000',
  },
}
SCSS
$custom: #221274;
$custom-light: #6b549d;
$custom-dark: #000000;
JSON
{
  "hex": "#221274",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 249.796,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28991,
    "c": 0.15318,
    "h": 278.3
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#221274
secondary
#98AB37
accent
#F038D2
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #221274

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

Preview Lab → · Contrast checker → · Palette generator →

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