#1B218E#1B218E

#1B218E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.174 H 270.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#1B218E
RGBrgb(27, 33, 142)
HSLhsl(237, 68%, 33%)
HSVhsv(237, 81%, 56%)
CMYKcmyk(81%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.11, 37.77, -59.96)
CIE-LCHlch(21.11, 70.87, 302.21°)
OKLaboklab(33.58% 0.0004 -0.1737)
OKLCHoklch(33.58% 0.174 270.1)
XYZxyz(5.8767, 3.2730, 25.9080)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B218E #8E881B
analogous
#1B5A8E #1B218E #4F1B8E
triadic
#1B218E #8E1B21 #218E1B
tetradic
#1B218E #8E1B5A #8E881B #1B8E4F
square
#1B218E #8E1B5A #8E881B #1B8E4F
split-complementary
#1B218E #8E4F1B #5A8E1B
monochromatic
#070927 #11155B #1B218E #252DC1 #474FDC

Accessibility & contrast

On white

12.69
#1B218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B218E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B218E#FFFFFF#000000##FFFFFF
##1B218E1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b218e;
/* rgb */ color: rgb(27, 33, 142);
/* oklch */ color: oklch(33.6% 0.174 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1b218e',
    950: '#000000',
  },
}
SCSS
$custom: #1b218e;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b218e",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 236.87,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3358,
    "c": 0.17367,
    "h": 270.1
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#1B218E
secondary
#BEB847
accent
#E23DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B218E

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

Preview Lab → · Contrast checker → · Palette generator →

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