#1D176B#1D176B

#1D176B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.138 H 276.0°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#1D176B
RGBrgb(29, 23, 107)
HSLhsl(244, 65%, 25%)
HSVhsv(244, 79%, 42%)
CMYKcmyk(72.9%, 78.5%, 0%, 58%)
CIE-LABlab(15.14, 31.57, -47.48)
CIE-LCHlch(15.14, 57.02, 303.62°)
OKLaboklab(28.21% 0.0145 -0.1372)
OKLCHoklch(28.21% 0.138 276)
XYZxyz(3.4661, 1.9352, 14.0979)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D176B #656B17
analogous
#173B6B #1D176B #47176B
triadic
#1D176B #6B1D17 #176B1D
tetradic
#1D176B #6B173B #656B17 #176B47
square
#1D176B #6B173B #656B17 #176B47
split-complementary
#1D176B #6B4717 #3B6B17
monochromatic
#070519 #0F0C39 #1D176B #2B229D #382DD0

Accessibility & contrast

On white

15.14
#1D176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1D176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D176B
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D176B#FFFFFF#000000##FFFFFF
##1D176B1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1d176b;
/* rgb */ color: rgb(29, 23, 107);
/* oklch */ color: oklch(28.2% 0.138 276.0);
Tailwind
colors: {
  custom: {
    50: '#665596',
    500: '#1d176b',
    950: '#000000',
  },
}
SCSS
$custom: #1d176b;
$custom-light: #665596;
$custom-dark: #000000;
JSON
{
  "hex": "#1d176b",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 244.286,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28212,
    "c": 0.13801,
    "h": 276
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#1D176B
secondary
#9AA13D
accent
#E840DC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1D176B

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

Preview Lab → · Contrast checker → · Palette generator →

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