#1D154C#1D154C

#1D154C is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.5% C 0.097 H 283.3°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#1D154C
RGBrgb(29, 21, 76)
HSLhsl(249, 57%, 19%)
HSVhsv(249, 72%, 30%)
CMYKcmyk(61.8%, 72.4%, 0%, 70.2%)
CIE-LABlab(11.41, 21.69, -32.79)
CIE-LCHlch(11.41, 39.32, 303.48°)
OKLaboklab(24.55% 0.0222 -0.0943)
OKLCHoklch(24.55% 0.097 283.3)
XYZxyz(2.0790, 1.3192, 6.9812)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D154C #444C15
analogous
#15294C #1D154C #39154C
triadic
#1D154C #4C1D15 #154C1D
tetradic
#1D154C #4C1529 #444C15 #154C39
square
#1D154C #4C1529 #444C15 #154C39
split-complementary
#1D154C #4C3915 #294C15
monochromatic
#090718 #0B081C #1D154C #2F227C #422FAC

Accessibility & contrast

On white

16.62
#1D154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1D154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D154C
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D154C#FFFFFF#000000##FFFFFF
##1D154C1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001C4B
Tritanopia (blue-blind)
#06232E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1d154c;
/* rgb */ color: rgb(29, 21, 76);
/* oklch */ color: oklch(24.5% 0.097 283.3);
Tailwind
colors: {
  custom: {
    50: '#5f537f',
    500: '#1d154c',
    950: '#000000',
  },
}
SCSS
$custom: #1d154c;
$custom-light: #5f537f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d154c",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 248.727,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24549,
    "c": 0.09685,
    "h": 283.3
  },
  "luminance": 0.01319
}

Semantic roles & 50–950 ramp

primary
#1D154C
secondary
#798439
accent
#E048CA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1D154C

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

Preview Lab → · Contrast checker → · Palette generator →

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