#221874#221874

#221874 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.148 H 277.4°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#221874
RGBrgb(34, 24, 116)
HSLhsl(247, 66%, 27%)
HSVhsv(247, 79%, 45%)
CMYKcmyk(70.7%, 79.3%, 0%, 54.5%)
CIE-LABlab(16.77, 34.65, -50.64)
CIE-LCHlch(16.77, 61.36, 304.38°)
OKLaboklab(29.76% 0.019 -0.1463)
OKLCHoklch(29.76% 0.148 277.4)
XYZxyz(4.1377, 2.2539, 16.7366)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221874 #6A7418
analogous
#183C74 #221874 #501874
triadic
#221874 #742218 #187422
tetradic
#221874 #74183C #6A7418 #187450
square
#221874 #74183C #6A7418 #187450
split-complementary
#221874 #745018 #3C7418
monochromatic
#070519 #130E41 #221874 #3122A7 #4432D5

Accessibility & contrast

On white

14.47
#221874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221874
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221874#FFFFFF#000000##FFFFFF
##2218741.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #221874;
/* rgb */ color: rgb(34, 24, 116);
/* oklch */ color: oklch(29.8% 0.148 277.4);
Tailwind
colors: {
  custom: {
    50: '#6a579d',
    500: '#221874',
    950: '#000000',
  },
}
SCSS
$custom: #221874;
$custom-light: #6a579d;
$custom-dark: #000000;
JSON
{
  "hex": "#221874",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 246.522,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29763,
    "c": 0.14754,
    "h": 277.4
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#221874
secondary
#9EA93F
accent
#E93FD6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221874

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

Preview Lab → · Contrast checker → · Palette generator →

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