#1D176E#1D176E

#1D176E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.142 H 275.6°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#1D176E
RGBrgb(29, 23, 110)
HSLhsl(244, 65%, 26%)
HSVhsv(244, 79%, 43%)
CMYKcmyk(73.6%, 79.1%, 0%, 56.9%)
CIE-LABlab(15.48, 32.62, -48.88)
CIE-LCHlch(15.48, 58.76, 303.72°)
OKLaboklab(28.55% 0.0138 -0.1413)
OKLCHoklch(28.55% 0.142 275.6)
XYZxyz(3.6266, 1.9995, 14.9436)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D176E #686E17
analogous
#173C6E #1D176E #48176E
triadic
#1D176E #6E1D17 #176E1D
tetradic
#1D176E #6E173C #686E17 #176E48
square
#1D176E #6E173C #686E17 #176E48
split-complementary
#1D176E #6E4817 #3C6E17
monochromatic
#070519 #100C3B #1D176E #2A22A1 #382CD3

Accessibility & contrast

On white

15.00
#1D176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D176E
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D176E#FFFFFF#000000##FFFFFF
##1D176E1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A70
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d176e;
/* rgb */ color: rgb(29, 23, 110);
/* oklch */ color: oklch(28.6% 0.142 275.6);
Tailwind
colors: {
  custom: {
    50: '#675699',
    500: '#1d176e',
    950: '#000000',
  },
}
SCSS
$custom: #1d176e;
$custom-light: #675699;
$custom-dark: #000000;
JSON
{
  "hex": "#1d176e",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 244.138,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28554,
    "c": 0.14199,
    "h": 275.6
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#1D176E
secondary
#9DA43D
accent
#E83FDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D176E

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

Preview Lab → · Contrast checker → · Palette generator →

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