#221972#221972

#221972 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.144 H 277.5°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#221972
RGBrgb(34, 25, 114)
HSLhsl(246, 64%, 27%)
HSVhsv(246, 78%, 45%)
CMYKcmyk(70.2%, 78.1%, 0%, 55.3%)
CIE-LABlab(16.75, 33.39, -49.38)
CIE-LCHlch(16.75, 59.61, 304.07°)
OKLaboklab(29.68% 0.0189 -0.1426)
OKLCHoklch(29.68% 0.144 277.5)
XYZxyz(4.0436, 2.2499, 16.1375)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221972 #697219
analogous
#193D72 #221972 #4E1972
triadic
#221972 #722219 #197222
tetradic
#221972 #72193D #697219 #19724E
square
#221972 #72193D #697219 #19724E
split-complementary
#221972 #724E19 #3D7219
monochromatic
#070619 #130E40 #221972 #3124A4 #4333D2

Accessibility & contrast

On white

14.48
#221972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#221972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221972
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221972#FFFFFF#000000##FFFFFF
##2219721.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #221972;
/* rgb */ color: rgb(34, 25, 114);
/* oklch */ color: oklch(29.7% 0.144 277.5);
Tailwind
colors: {
  custom: {
    50: '#6a579c',
    500: '#221972',
    950: '#000000',
  },
}
SCSS
$custom: #221972;
$custom-light: #6a579c;
$custom-dark: #000000;
JSON
{
  "hex": "#221972",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 246.067,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29683,
    "c": 0.1439,
    "h": 277.5
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#221972
secondary
#9DA740
accent
#E741D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221972

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

Preview Lab → · Contrast checker → · Palette generator →

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