#1D156E#1D156E

#1D156E is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.144 H 275.9°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#1D156E
RGBrgb(29, 21, 110)
HSLhsl(245, 68%, 26%)
HSVhsv(245, 81%, 43%)
CMYKcmyk(73.6%, 80.9%, 0%, 56.9%)
CIE-LABlab(15.08, 33.78, -49.55)
CIE-LCHlch(15.08, 59.97, 304.28°)
OKLaboklab(28.27% 0.0149 -0.1432)
OKLCHoklch(28.27% 0.144 275.9)
XYZxyz(3.5884, 1.9230, 14.9309)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D156E #666E15
analogous
#15396E #1D156E #49156E
triadic
#1D156E #6E1D15 #156E1D
tetradic
#1D156E #6E1539 #666E15 #156E49
square
#1D156E #6E1539 #666E15 #156E49
split-complementary
#1D156E #6E4915 #396E15
monochromatic
#07051A #0F0B3B #1D156E #2B1FA1 #3829D5

Accessibility & contrast

On white

15.17
#1D156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1D156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D156E
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D156E#FFFFFF#000000##FFFFFF
##1D156E1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00226C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1d156e;
/* rgb */ color: rgb(29, 21, 110);
/* oklch */ color: oklch(28.3% 0.144 275.9);
Tailwind
colors: {
  custom: {
    50: '#675499',
    500: '#1d156e',
    950: '#000000',
  },
}
SCSS
$custom: #1d156e;
$custom-light: #675499;
$custom-dark: #000000;
JSON
{
  "hex": "#1d156e",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 245.393,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28268,
    "c": 0.14402,
    "h": 275.9
  },
  "luminance": 0.01923
}

Semantic roles & 50–950 ramp

primary
#1D156E
secondary
#9BA43A
accent
#EB3DDB
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D156E

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

Preview Lab → · Contrast checker → · Palette generator →

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