#1B1561#1B1561

#1B1561 is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.127 H 276.8°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#1B1561
RGBrgb(27, 21, 97)
HSLhsl(245, 64%, 23%)
HSVhsv(245, 78%, 38%)
CMYKcmyk(72.2%, 78.4%, 0%, 62%)
CIE-LABlab(13.43, 29.00, -43.72)
CIE-LCHlch(13.43, 52.47, 303.55°)
OKLaboklab(26.62% 0.0152 -0.1263)
OKLCHoklch(26.62% 0.127 276.8)
XYZxyz(2.8771, 1.6322, 11.4704)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1561 #5B6115
analogous
#153561 #1B1561 #411561
triadic
#1B1561 #611B15 #15611B
tetradic
#1B1561 #611535 #5B6115 #156141
square
#1B1561 #611535 #5B6115 #156141
split-complementary
#1B1561 #614115 #356115
monochromatic
#070519 #0D0A2F #1B1561 #292093 #372BC6

Accessibility & contrast

On white

15.83
#1B1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1B1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1561
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1561#FFFFFF#000000##FFFFFF
##1B15611.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#001F60
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1b1561;
/* rgb */ color: rgb(27, 21, 97);
/* oklch */ color: oklch(26.6% 0.127 276.8);
Tailwind
colors: {
  custom: {
    50: '#63538f',
    500: '#1b1561',
    950: '#000000',
  },
}
SCSS
$custom: #1b1561;
$custom-light: #63538f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1561",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 244.737,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26617,
    "c": 0.12724,
    "h": 276.8
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#1B1561
secondary
#91983A
accent
#E740DA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B1561

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

Preview Lab → · Contrast checker → · Palette generator →

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