#1B218D#1B218D

#1B218D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.172 H 270.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#1B218D
RGBrgb(27, 33, 141)
HSLhsl(237, 68%, 33%)
HSVhsv(237, 81%, 55%)
CMYKcmyk(80.9%, 76.6%, 0%, 44.7%)
CIE-LABlab(20.99, 37.42, -59.52)
CIE-LCHlch(20.99, 70.31, 302.16°)
OKLaboklab(33.47% 0.0006 -0.1724)
OKLCHoklch(33.47% 0.172 270.2)
XYZxyz(5.8019, 3.2432, 25.5143)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B218D #8D871B
analogous
#1B5A8D #1B218D #4E1B8D
triadic
#1B218D #8D1B21 #218D1B
tetradic
#1B218D #8D1B5A #8D871B #1B8D4E
square
#1B218D #8D1B5A #8D871B #1B8D4E
split-complementary
#1B218D #8D4E1B #5A8D1B
monochromatic
#070926 #11155A #1B218D #252DC0 #474FDC

Accessibility & contrast

On white

12.74
#1B218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1B218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B218D
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B218D#FFFFFF#000000##FFFFFF
##1B218D1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b218d;
/* rgb */ color: rgb(27, 33, 141);
/* oklch */ color: oklch(33.5% 0.172 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1b218d',
    950: '#000000',
  },
}
SCSS
$custom: #1b218d;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b218d",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 236.842,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33466,
    "c": 0.1724,
    "h": 270.2
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#1B218D
secondary
#BDB746
accent
#E23DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1B218D

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

Preview Lab → · Contrast checker → · Palette generator →

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