#221895#221895

#221895 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.188 H 273.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#221895
RGBrgb(34, 24, 149)
HSLhsl(245, 72%, 34%)
HSVhsv(245, 84%, 58%)
CMYKcmyk(77.2%, 83.9%, 0%, 41.6%)
CIE-LABlab(20.68, 45.39, -64.99)
CIE-LCHlch(20.68, 79.27, 304.93°)
OKLaboklab(33.64% 0.0102 -0.188)
OKLCHoklch(33.64% 0.188 273.1)
XYZxyz(6.4093, 3.1626, 28.7006)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221895 #8B9518
analogous
#184D95 #221895 #611895
triadic
#221895 #952218 #189522
tetradic
#221895 #95184D #8B9518 #189561
square
#221895 #95184D #8B9518 #189561
split-complementary
#221895 #956118 #4D9518
monochromatic
#0A072C #161060 #221895 #2E20CA #5346E1

Accessibility & contrast

On white

12.86
#221895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#221895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221895
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221895#FFFFFF#000000##FFFFFF
##2218951.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003798
Deuteranopia (green-blind)
#002C93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #221895;
/* rgb */ color: rgb(34, 24, 149);
/* oklch */ color: oklch(33.6% 0.188 273.1);
Tailwind
colors: {
  custom: {
    50: '#7359b6',
    500: '#221895',
    950: '#000000',
  },
}
SCSS
$custom: #221895;
$custom-light: #7359b6;
$custom-dark: #000000;
JSON
{
  "hex": "#221895",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 244.8,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33636,
    "c": 0.18826,
    "h": 273.1
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#221895
secondary
#B8C246
accent
#EF39E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #221895

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

Preview Lab → · Contrast checker → · Palette generator →

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