#1B1571#1B1571

#1B1571 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.148 H 274.4°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#1B1571
RGBrgb(27, 21, 113)
HSLhsl(244, 69%, 26%)
HSVhsv(244, 81%, 44%)
CMYKcmyk(76.1%, 81.4%, 0%, 55.7%)
CIE-LABlab(15.28, 34.62, -51.17)
CIE-LCHlch(15.28, 61.78, 304.08°)
OKLaboklab(28.48% 0.0113 -0.148)
OKLCHoklch(28.48% 0.148 274.4)
XYZxyz(3.6998, 1.9612, 15.8032)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1571 #6B7115
analogous
#153D71 #1B1571 #491571
triadic
#1B1571 #711B15 #15711B
tetradic
#1B1571 #71153D #6B7115 #157149
square
#1B1571 #71153D #6B7115 #157149
split-complementary
#1B1571 #714915 #3D7115
monochromatic
#06051A #0F0B3D #1B1571 #271FA5 #3529D7

Accessibility & contrast

On white

15.08
#1B1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1B1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1571
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1571#FFFFFF#000000##FFFFFF
##1B15711.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b1571;
/* rgb */ color: rgb(27, 21, 113);
/* oklch */ color: oklch(28.5% 0.148 274.4);
Tailwind
colors: {
  custom: {
    50: '#67549b',
    500: '#1b1571',
    950: '#000000',
  },
}
SCSS
$custom: #1b1571;
$custom-light: #67549b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1571",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 243.913,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28477,
    "c": 0.14844,
    "h": 274.4
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#1B1571
secondary
#A0A73B
accent
#EB3CE0
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B1571

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

Preview Lab → · Contrast checker → · Palette generator →

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