#1D156B#1D156B

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

Color values

HEX#1D156B
RGBrgb(29, 21, 107)
HSLhsl(246, 67%, 25%)
HSVhsv(246, 80%, 42%)
CMYKcmyk(72.9%, 80.4%, 0%, 58%)
CIE-LABlab(14.73, 32.75, -48.17)
CIE-LCHlch(14.73, 58.25, 304.21°)
OKLaboklab(27.92% 0.0157 -0.1392)
OKLCHoklch(27.92% 0.14 276.4)
XYZxyz(3.4278, 1.8588, 14.0852)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D156B #636B15
analogous
#15386B #1D156B #48156B
triadic
#1D156B #6B1D15 #156B1D
tetradic
#1D156B #6B1538 #636B15 #156B48
square
#1D156B #6B1538 #636B15 #156B48
split-complementary
#1D156B #6B4815 #386B15
monochromatic
#07051A #0F0B38 #1D156B #2B1F9E #3929D1

Accessibility & contrast

On white

15.31
#1D156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D156B
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D156B#FFFFFF#000000##FFFFFF
##1D156B1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.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: #1d156b;
/* rgb */ color: rgb(29, 21, 107);
/* oklch */ color: oklch(27.9% 0.140 276.4);
Tailwind
colors: {
  custom: {
    50: '#665496',
    500: '#1d156b',
    950: '#000000',
  },
}
SCSS
$custom: #1d156b;
$custom-light: #665496;
$custom-dark: #000000;
JSON
{
  "hex": "#1d156b",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 245.581,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27919,
    "c": 0.14011,
    "h": 276.4
  },
  "luminance": 0.01859
}

Semantic roles & 50–950 ramp

primary
#1D156B
secondary
#98A23A
accent
#EA3EDA
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1D156B

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

Preview Lab → · Contrast checker → · Palette generator →

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