#1B156D#1B156D

#1B156D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.143 H 274.9°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#1B156D
RGBrgb(27, 21, 109)
HSLhsl(244, 68%, 25%)
HSVhsv(244, 81%, 43%)
CMYKcmyk(75.2%, 80.7%, 0%, 57.3%)
CIE-LABlab(14.81, 33.24, -49.35)
CIE-LCHlch(14.81, 59.50, 303.96°)
OKLaboklab(28% 0.0123 -0.1427)
OKLCHoklch(28% 0.143 274.9)
XYZxyz(3.4796, 1.8731, 14.6432)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B156D #676D15
analogous
#153B6D #1B156D #47156D
triadic
#1B156D #6D1B15 #156D1B
tetradic
#1B156D #6D153B #676D15 #156D47
square
#1B156D #6D153B #676D15 #156D47
split-complementary
#1B156D #6D4715 #3B6D15
monochromatic
#06051A #0E0B3A #1B156D #281FA0 #3429D4

Accessibility & contrast

On white

15.28
#1B156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B156D
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B156D#FFFFFF#000000##FFFFFF
##1B156D1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296F
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b156d;
/* rgb */ color: rgb(27, 21, 109);
/* oklch */ color: oklch(28.0% 0.143 274.9);
Tailwind
colors: {
  custom: {
    50: '#665498',
    500: '#1b156d',
    950: '#000000',
  },
}
SCSS
$custom: #1b156d;
$custom-light: #665498;
$custom-dark: #000000;
JSON
{
  "hex": "#1b156d",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 244.091,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28003,
    "c": 0.14325,
    "h": 274.9
  },
  "luminance": 0.01873
}

Semantic roles & 50–950 ramp

primary
#1B156D
secondary
#9CA33A
accent
#EB3DDF
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B156D

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

Preview Lab → · Contrast checker → · Palette generator →

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