#1D177B#1D177B

#1D177B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.159 H 273.8°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#1D177B
RGBrgb(29, 23, 123)
HSLhsl(244, 68%, 29%)
HSVhsv(244, 81%, 48%)
CMYKcmyk(76.4%, 81.3%, 0%, 51.8%)
CIE-LABlab(17.01, 37.09, -54.75)
CIE-LCHlch(17.01, 66.13, 304.11°)
OKLaboklab(30.07% 0.0107 -0.1584)
OKLCHoklch(30.07% 0.159 273.8)
XYZxyz(4.3871, 2.3036, 18.9485)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D177B #757B17
analogous
#17437B #1D177B #4F177B
triadic
#1D177B #7B1D17 #177B1D
tetradic
#1D177B #7B1743 #757B17 #177B4F
square
#1D177B #7B1743 #757B17 #177B4F
split-complementary
#1D177B #7B4F17 #437B17
monochromatic
#06051A #110D47 #1D177B #2921AF #3D33D9

Accessibility & contrast

On white

14.38
#1D177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1D177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D177B
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D177B#FFFFFF#000000##FFFFFF
##1D177B1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d177b;
/* rgb */ color: rgb(29, 23, 123);
/* oklch */ color: oklch(30.1% 0.159 273.8);
Tailwind
colors: {
  custom: {
    50: '#6a56a2',
    500: '#1d177b',
    950: '#000000',
  },
}
SCSS
$custom: #1d177b;
$custom-light: #6a56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d177b",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 243.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30072,
    "c": 0.15875,
    "h": 273.8
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#1D177B
secondary
#A9B03E
accent
#EB3CE1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D177B

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

Preview Lab → · Contrast checker → · Palette generator →

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