#1B1371#1B1371

#1B1371 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.150 H 274.6°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#1B1371
RGBrgb(27, 19, 113)
HSLhsl(245, 71%, 26%)
HSVhsv(245, 83%, 44%)
CMYKcmyk(76.1%, 83.2%, 0%, 55.7%)
CIE-LABlab(14.90, 35.71, -51.80)
CIE-LCHlch(14.90, 62.92, 304.58°)
OKLaboklab(28.21% 0.0122 -0.1498)
OKLCHoklch(28.21% 0.15 274.6)
XYZxyz(3.6645, 1.8906, 15.7914)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1371 #697113
analogous
#133A71 #1B1371 #4A1371
triadic
#1B1371 #711B13 #13711B
tetradic
#1B1371 #71133A #697113 #13714A
square
#1B1371 #71133A #697113 #13714A
split-complementary
#1B1371 #714A13 #3A7113
monochromatic
#06041A #0E0A3D #1B1371 #281CA5 #3425DA

Accessibility & contrast

On white

15.24
#1B1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1B1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1371
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1371#FFFFFF#000000##FFFFFF
##1B13711.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b1371;
/* rgb */ color: rgb(27, 19, 113);
/* oklch */ color: oklch(28.2% 0.150 274.6);
Tailwind
colors: {
  custom: {
    50: '#67539b',
    500: '#1b1371',
    950: '#000000',
  },
}
SCSS
$custom: #1b1371;
$custom-light: #67539b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1371",
  "rgb": {
    "r": 27,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 245.106,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28212,
    "c": 0.15029,
    "h": 274.6
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#1B1371
secondary
#9EA838
accent
#EE3ADF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B1371

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

Preview Lab → · Contrast checker → · Palette generator →

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