#1D179E#1D179E

#1D179E is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.3% C 0.201 H 270.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#1D179E
RGBrgb(29, 23, 158)
HSLhsl(243, 75%, 35%)
HSVhsv(243, 85%, 62%)
CMYKcmyk(81.6%, 85.4%, 0%, 38%)
CIE-LABlab(21.36, 48.36, -69.40)
CIE-LCHlch(21.36, 84.59, 304.87°)
OKLaboklab(34.35% 0.002 -0.2008)
OKLCHoklch(34.35% 0.201 270.6)
XYZxyz(6.9826, 3.3418, 32.6181)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D179E #989E17
analogous
#17549E #1D179E #61179E
triadic
#1D179E #9E1D17 #179E1D
tetradic
#1D179E #9E1754 #989E17 #179E61
square
#1D179E #9E1754 #989E17 #179E61
split-complementary
#1D179E #9E6117 #549E17
monochromatic
#090733 #130F69 #1D179E #271FD3 #524BE5

Accessibility & contrast

On white

12.59
#1D179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1D179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D179E
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D179E#FFFFFF#000000##FFFFFF
##1D179E1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002C9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d179e;
/* rgb */ color: rgb(29, 23, 158);
/* oklch */ color: oklch(34.3% 0.201 270.6);
Tailwind
colors: {
  custom: {
    50: '#7459bc',
    500: '#1d179e',
    950: '#000000',
  },
}
SCSS
$custom: #1d179e;
$custom-light: #7459bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1d179e",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 242.667,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34348,
    "c": 0.20083,
    "h": 270.6
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#1D179E
secondary
#C1C64A
accent
#F137E9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1D179E

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

Preview Lab → · Contrast checker → · Palette generator →

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