#1B216A#1B216A

#1B216A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.7% C 0.125 H 272.4°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#1B216A
RGBrgb(27, 33, 106)
HSLhsl(235, 59%, 26%)
HSVhsv(235, 75%, 42%)
CMYKcmyk(74.5%, 68.9%, 0%, 58.4%)
CIE-LABlab(17.28, 24.42, -43.33)
CIE-LCHlch(17.28, 49.74, 299.41°)
OKLaboklab(29.68% 0.0053 -0.1252)
OKLCHoklch(29.68% 0.125 272.4)
XYZxyz(3.5965, 2.3610, 13.8991)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B216A #6A641B
analogous
#1B486A #1B216A #3C1B6A
triadic
#1B216A #6A1B21 #216A1B
tetradic
#1B216A #6A1B48 #6A641B #1B6A3C
square
#1B216A #6A1B48 #6A641B #1B6A3C
split-complementary
#1B216A #6A3C1B #486A1B
monochromatic
#060818 #0F1239 #1B216A #27309B #3440CB

Accessibility & contrast

On white

14.26
#1B216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1B216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B216A
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B216A#FFFFFF#000000##FFFFFF
##1B216A1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b216a;
/* rgb */ color: rgb(27, 33, 106);
/* oklch */ color: oklch(29.7% 0.125 272.4);
Tailwind
colors: {
  custom: {
    50: '#645c95',
    500: '#1b216a',
    950: '#000000',
  },
}
SCSS
$custom: #1b216a;
$custom-light: #645c95;
$custom-dark: #000000;
JSON
{
  "hex": "#1b216a",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 235.443,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29678,
    "c": 0.12528,
    "h": 272.4
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#1B216A
secondary
#9F9842
accent
#D745E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1B216A

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

Preview Lab → · Contrast checker → · Palette generator →

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