#1D176F#1D176F

#1D176F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.143 H 275.4°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#1D176F
RGBrgb(29, 23, 111)
HSLhsl(244, 66%, 26%)
HSVhsv(244, 79%, 44%)
CMYKcmyk(73.9%, 79.3%, 0%, 56.5%)
CIE-LABlab(15.60, 32.97, -49.34)
CIE-LCHlch(15.60, 59.34, 303.75°)
OKLaboklab(28.67% 0.0136 -0.1427)
OKLCHoklch(28.67% 0.143 275.4)
XYZxyz(3.6814, 2.0214, 15.2320)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D176F #696F17
analogous
#173D6F #1D176F #49176F
triadic
#1D176F #6F1D17 #176F1D
tetradic
#1D176F #6F173D #696F17 #176F49
square
#1D176F #6F173D #696F17 #176F49
split-complementary
#1D176F #6F4917 #3D6F17
monochromatic
#070519 #100C3C #1D176F #2A22A2 #382DD3

Accessibility & contrast

On white

14.95
#1D176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1D176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D176F
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D176F#FFFFFF#000000##FFFFFF
##1D176F1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d176f;
/* rgb */ color: rgb(29, 23, 111);
/* oklch */ color: oklch(28.7% 0.143 275.4);
Tailwind
colors: {
  custom: {
    50: '#675699',
    500: '#1d176f',
    950: '#000000',
  },
}
SCSS
$custom: #1d176f;
$custom-light: #675699;
$custom-dark: #000000;
JSON
{
  "hex": "#1d176f",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 244.091,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28669,
    "c": 0.1433,
    "h": 275.4
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#1D176F
secondary
#9EA53D
accent
#E93FDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D176F

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

Preview Lab → · Contrast checker → · Palette generator →

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