#1B156C#1B156C

#1B156C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.142 H 275.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#1B156C
RGBrgb(27, 21, 108)
HSLhsl(244, 67%, 25%)
HSVhsv(244, 81%, 42%)
CMYKcmyk(75%, 80.6%, 0%, 57.6%)
CIE-LABlab(14.69, 32.89, -48.89)
CIE-LCHlch(14.69, 58.92, 303.92°)
OKLaboklab(27.89% 0.0125 -0.1414)
OKLCHoklch(27.89% 0.142 275.1)
XYZxyz(3.4260, 1.8517, 14.3613)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B156C #666C15
analogous
#153A6C #1B156C #46156C
triadic
#1B156C #6C1B15 #156C1B
tetradic
#1B156C #6C153A #666C15 #156C46
square
#1B156C #6C153A #666C15 #156C46
split-complementary
#1B156C #6C4615 #3A6C15
monochromatic
#06051A #0E0B39 #1B156C #281F9F #3529D2

Accessibility & contrast

On white

15.32
#1B156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B156C
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B156C#FFFFFF#000000##FFFFFF
##1B156C1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b156c;
/* rgb */ color: rgb(27, 21, 108);
/* oklch */ color: oklch(27.9% 0.142 275.1);
Tailwind
colors: {
  custom: {
    50: '#665497',
    500: '#1b156c',
    950: '#000000',
  },
}
SCSS
$custom: #1b156c;
$custom-light: #665497;
$custom-dark: #000000;
JSON
{
  "hex": "#1b156c",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 244.138,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27886,
    "c": 0.14195,
    "h": 275.1
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#1B156C
secondary
#9BA33A
accent
#EA3DDE
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B156C

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

Preview Lab → · Contrast checker → · Palette generator →

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