#221BB3#221BB3

#221BB3 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.6% C 0.221 H 270.5°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#221BB3
RGBrgb(34, 27, 179)
HSLhsl(243, 74%, 40%)
HSVhsv(243, 85%, 70%)
CMYKcmyk(81%, 84.9%, 0%, 29.8%)
CIE-LABlab(24.88, 53.24, -76.25)
CIE-LCHlch(24.88, 92.99, 304.92°)
OKLaboklab(37.6% 0.002 -0.2206)
OKLCHoklch(37.6% 0.221 270.5)
XYZxyz(9.1856, 4.3776, 42.9999)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221BB3 #ACB31B
analogous
#1B60B3 #221BB3 #6E1BB3
triadic
#221BB3 #B3221B #1BB322
tetradic
#221BB3 #B31B60 #ACB31B #1BB36E
square
#221BB3 #B31B60 #ACB31B #1BB36E
split-complementary
#221BB3 #B36E1B #60B31B
monochromatic
#0E0B49 #18137E #221BB3 #342CDF #6761E7

Accessibility & contrast

On white

11.20
#221BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#221BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221BB3
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221BB3#FFFFFF#000000##FFFFFF
##221BB31.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #221bb3;
/* rgb */ color: rgb(34, 27, 179);
/* oklch */ color: oklch(37.6% 0.221 270.5);
Tailwind
colors: {
  custom: {
    50: '#7a5dcb',
    500: '#221bb3',
    950: '#000000',
  },
}
SCSS
$custom: #221bb3;
$custom-light: #7a5dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#221bb3",
  "rgb": {
    "r": 34,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 242.763,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.376,
    "c": 0.22064,
    "h": 270.5
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#221BB3
secondary
#C7CC5E
accent
#F037E8
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #221BB3

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

Preview Lab → · Contrast checker → · Palette generator →

#221BB3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva