#1B1572#1B1572

#1B1572 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.150 H 274.2°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#1B1572
RGBrgb(27, 21, 114)
HSLhsl(244, 69%, 26%)
HSVhsv(244, 82%, 45%)
CMYKcmyk(76.3%, 81.6%, 0%, 55.3%)
CIE-LABlab(15.40, 34.96, -51.62)
CIE-LCHlch(15.40, 62.34, 304.11°)
OKLaboklab(28.6% 0.011 -0.1493)
OKLCHoklch(28.6% 0.15 274.2)
XYZxyz(3.7564, 1.9839, 16.1013)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1572 #6C7215
analogous
#153E72 #1B1572 #4A1572
triadic
#1B1572 #721B15 #15721B
tetradic
#1B1572 #72153E #6C7215 #15724A
square
#1B1572 #72153E #6C7215 #15724A
split-complementary
#1B1572 #724A15 #3E7215
monochromatic
#06051A #0F0B3E #1B1572 #271FA6 #352AD8

Accessibility & contrast

On white

15.03
#1B1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1B1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1572
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1572#FFFFFF#000000##FFFFFF
##1B15721.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1b1572;
/* rgb */ color: rgb(27, 21, 114);
/* oklch */ color: oklch(28.6% 0.150 274.2);
Tailwind
colors: {
  custom: {
    50: '#68559c',
    500: '#1b1572',
    950: '#000000',
  },
}
SCSS
$custom: #1b1572;
$custom-light: #68559c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1572",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 243.871,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28596,
    "c": 0.14972,
    "h": 274.2
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#1B1572
secondary
#A1A83B
accent
#EC3CE0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B1572

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

Preview Lab → · Contrast checker → · Palette generator →

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