#1D177F#1D177F

#1D177F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.164 H 273.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#1D177F
RGBrgb(29, 23, 127)
HSLhsl(243, 69%, 29%)
HSVhsv(243, 82%, 50%)
CMYKcmyk(77.2%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.49, 38.43, -56.51)
CIE-LCHlch(17.49, 68.34, 304.22°)
OKLaboklab(30.55% 0.0097 -0.1635)
OKLCHoklch(30.55% 0.164 273.4)
XYZxyz(4.6426, 2.4058, 20.2943)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D177F #797F17
analogous
#17457F #1D177F #51177F
triadic
#1D177F #7F1D17 #177F1D
tetradic
#1D177F #7F1745 #797F17 #177F51
square
#1D177F #7F1745 #797F17 #177F51
split-complementary
#1D177F #7F5117 #457F17
monochromatic
#06051A #110E4B #1D177F #2920B3 #3F36DB

Accessibility & contrast

On white

14.18
#1D177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1D177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D177F
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D177F#FFFFFF#000000##FFFFFF
##1D177F1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d177f;
/* rgb */ color: rgb(29, 23, 127);
/* oklch */ color: oklch(30.5% 0.164 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b57a5',
    500: '#1d177f',
    950: '#000000',
  },
}
SCSS
$custom: #1d177f;
$custom-light: #6b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d177f",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 243.462,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30549,
    "c": 0.16377,
    "h": 273.4
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#1D177F
secondary
#ADB43E
accent
#EC3CE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D177F

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

Preview Lab → · Contrast checker → · Palette generator →

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