#1B218C#1B218C

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

Color values

HEX#1B218C
RGBrgb(27, 33, 140)
HSLhsl(237, 68%, 33%)
HSVhsv(237, 81%, 55%)
CMYKcmyk(80.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(20.88, 37.07, -59.09)
CIE-LCHlch(20.88, 69.75, 302.10°)
OKLaboklab(33.35% 0.0007 -0.1711)
OKLCHoklch(33.35% 0.171 270.2)
XYZxyz(5.7279, 3.2135, 25.1243)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B218C #8C861B
analogous
#1B5A8C #1B218C #4D1B8C
triadic
#1B218C #8C1B21 #218C1B
tetradic
#1B218C #8C1B5A #8C861B #1B8C4D
square
#1B218C #8C1B5A #8C861B #1B8C4D
split-complementary
#1B218C #8C4D1B #5A8C1B
monochromatic
#070925 #111559 #1B218C #252DBF #464EDB

Accessibility & contrast

On white

12.78
#1B218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1B218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B218C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B218C#FFFFFF#000000##FFFFFF
##1B218C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b218c;
/* rgb */ color: rgb(27, 33, 140);
/* oklch */ color: oklch(33.4% 0.171 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d5daf',
    500: '#1b218c',
    950: '#000000',
  },
}
SCSS
$custom: #1b218c;
$custom-light: #6d5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b218c",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 236.814,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.17113,
    "h": 270.2
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#1B218C
secondary
#BDB746
accent
#E13DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B218C

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

Preview Lab → · Contrast checker → · Palette generator →

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