#1B216B#1B216B

#1B216B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.8% C 0.127 H 272.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#1B216B
RGBrgb(27, 33, 107)
HSLhsl(236, 60%, 26%)
HSVhsv(236, 75%, 42%)
CMYKcmyk(74.8%, 69.2%, 0%, 58%)
CIE-LABlab(17.38, 24.81, -43.82)
CIE-LCHlch(17.38, 50.35, 299.52°)
OKLaboklab(29.78% 0.0052 -0.1266)
OKLCHoklch(29.78% 0.127 272.3)
XYZxyz(3.6488, 2.3819, 14.1745)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B216B #6B651B
analogous
#1B496B #1B216B #3D1B6B
triadic
#1B216B #6B1B21 #216B1B
tetradic
#1B216B #6B1B49 #6B651B #1B6B3D
square
#1B216B #6B1B49 #6B651B #1B6B3D
split-complementary
#1B216B #6B3D1B #496B1B
monochromatic
#060818 #0F123A #1B216B #27309C #3540CC

Accessibility & contrast

On white

14.22
#1B216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1B216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B216B
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B216B#FFFFFF#000000##FFFFFF
##1B216B1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#003542
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b216b;
/* rgb */ color: rgb(27, 33, 107);
/* oklch */ color: oklch(29.8% 0.127 272.3);
Tailwind
colors: {
  custom: {
    50: '#645c96',
    500: '#1b216b',
    950: '#000000',
  },
}
SCSS
$custom: #1b216b;
$custom-light: #645c96;
$custom-dark: #000000;
JSON
{
  "hex": "#1b216b",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 235.5,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29779,
    "c": 0.12672,
    "h": 272.3
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#1B216B
secondary
#A09942
accent
#D745E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1B216B

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

Preview Lab → · Contrast checker → · Palette generator →

#1B216B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva