#1B156B#1B156B

#1B156B is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.141 H 275.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#1B156B
RGBrgb(27, 21, 107)
HSLhsl(244, 67%, 25%)
HSVhsv(244, 80%, 42%)
CMYKcmyk(74.8%, 80.4%, 0%, 58%)
CIE-LABlab(14.57, 32.54, -48.43)
CIE-LCHlch(14.57, 58.35, 303.89°)
OKLaboklab(27.77% 0.0128 -0.14)
OKLCHoklch(27.77% 0.141 275.2)
XYZxyz(3.3731, 1.8306, 14.0826)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B156B #656B15
analogous
#153A6B #1B156B #46156B
triadic
#1B156B #6B1B15 #156B1B
tetradic
#1B156B #6B153A #656B15 #156B46
square
#1B156B #6B153A #656B15 #156B46
split-complementary
#1B156B #6B4615 #3A6B15
monochromatic
#06051A #0E0B38 #1B156B #281F9E #3529D1

Accessibility & contrast

On white

15.37
#1B156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1B156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B156B
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B156B#FFFFFF#000000##FFFFFF
##1B156B1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b156b;
/* rgb */ color: rgb(27, 21, 107);
/* oklch */ color: oklch(27.8% 0.141 275.2);
Tailwind
colors: {
  custom: {
    50: '#665496',
    500: '#1b156b',
    950: '#000000',
  },
}
SCSS
$custom: #1b156b;
$custom-light: #665496;
$custom-dark: #000000;
JSON
{
  "hex": "#1b156b",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 244.186,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27769,
    "c": 0.14063,
    "h": 275.2
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#1B156B
secondary
#9AA23A
accent
#EA3EDE
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1B156B

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

Preview Lab → · Contrast checker → · Palette generator →

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