#1D177E#1D177E

#1D177E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.163 H 273.5°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#1D177E
RGBrgb(29, 23, 126)
HSLhsl(243, 69%, 29%)
HSVhsv(243, 82%, 49%)
CMYKcmyk(77%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.37, 38.10, -56.07)
CIE-LCHlch(17.37, 67.79, 304.19°)
OKLaboklab(30.43% 0.0099 -0.1622)
OKLCHoklch(30.43% 0.163 273.5)
XYZxyz(4.5777, 2.3799, 19.9527)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D177E #787E17
analogous
#17457E #1D177E #51177E
triadic
#1D177E #7E1D17 #177E1D
tetradic
#1D177E #7E1745 #787E17 #177E51
square
#1D177E #7E1745 #787E17 #177E51
split-complementary
#1D177E #7E5117 #457E17
monochromatic
#06051A #110E4A #1D177E #2920B2 #3F35DA

Accessibility & contrast

On white

14.23
#1D177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D177E
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D177E#FFFFFF#000000##FFFFFF
##1D177E1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d177e;
/* rgb */ color: rgb(29, 23, 126);
/* oklch */ color: oklch(30.4% 0.163 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b57a5',
    500: '#1d177e',
    950: '#000000',
  },
}
SCSS
$custom: #1d177e;
$custom-light: #6b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d177e",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 243.495,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30429,
    "c": 0.16252,
    "h": 273.5
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D177E

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

Preview Lab → · Contrast checker → · Palette generator →

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