#1D176C#1D176C

#1D176C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.139 H 275.9°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#1D176C
RGBrgb(29, 23, 108)
HSLhsl(244, 65%, 26%)
HSVhsv(244, 79%, 42%)
CMYKcmyk(73.1%, 78.7%, 0%, 57.6%)
CIE-LABlab(15.26, 31.92, -47.95)
CIE-LCHlch(15.26, 57.60, 303.65°)
OKLaboklab(28.33% 0.0143 -0.1386)
OKLCHoklch(28.33% 0.139 275.9)
XYZxyz(3.5190, 1.9564, 14.3766)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D176C #666C17
analogous
#173B6C #1D176C #47176C
triadic
#1D176C #6C1D17 #176C1D
tetradic
#1D176C #6C173B #666C17 #176C47
square
#1D176C #6C173B #666C17 #176C47
split-complementary
#1D176C #6C4717 #3B6C17
monochromatic
#070519 #0F0C3A #1D176C #2B229E #382CD1

Accessibility & contrast

On white

15.09
#1D176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1D176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D176C
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D176C#FFFFFF#000000##FFFFFF
##1D176C1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1d176c;
/* rgb */ color: rgb(29, 23, 108);
/* oklch */ color: oklch(28.3% 0.139 275.9);
Tailwind
colors: {
  custom: {
    50: '#675597',
    500: '#1d176c',
    950: '#000000',
  },
}
SCSS
$custom: #1d176c;
$custom-light: #675597;
$custom-dark: #000000;
JSON
{
  "hex": "#1d176c",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 244.235,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28326,
    "c": 0.13934,
    "h": 275.9
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#1D176C
secondary
#9BA23D
accent
#E840DC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D176C

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

Preview Lab → · Contrast checker → · Palette generator →

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