#1B216D#1B216D

#1B216D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.130 H 272.2°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#1B216D
RGBrgb(27, 33, 109)
HSLhsl(236, 60%, 27%)
HSVhsv(236, 75%, 43%)
CMYKcmyk(75.2%, 69.7%, 0%, 57.3%)
CIE-LABlab(17.57, 25.58, -44.80)
CIE-LCHlch(17.57, 51.59, 299.73°)
OKLaboklab(29.98% 0.005 -0.1295)
OKLCHoklch(29.98% 0.13 272.2)
XYZxyz(3.7552, 2.4245, 14.7351)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B216D #6D671B
analogous
#1B4A6D #1B216D #3E1B6D
triadic
#1B216D #6D1B21 #216D1B
tetradic
#1B216D #6D1B4A #6D671B #1B6D3E
square
#1B216D #6D1B4A #6D671B #1B6D3E
split-complementary
#1B216D #6D3E1B #4A6D1B
monochromatic
#060719 #0F123C #1B216D #27309E #3540CD

Accessibility & contrast

On white

14.14
#1B216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1B216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B216D
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B216D#FFFFFF#000000##FFFFFF
##1B216D1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b216d;
/* rgb */ color: rgb(27, 33, 109);
/* oklch */ color: oklch(30.0% 0.130 272.2);
Tailwind
colors: {
  custom: {
    50: '#655c98',
    500: '#1b216d',
    950: '#000000',
  },
}
SCSS
$custom: #1b216d;
$custom-light: #655c98;
$custom-dark: #000000;
JSON
{
  "hex": "#1b216d",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 235.61,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29984,
    "c": 0.12958,
    "h": 272.2
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#1B216D
secondary
#A29B42
accent
#D844E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B216D

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

Preview Lab → · Contrast checker → · Palette generator →

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