#1D175D#1D175D

#1D175D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.119 H 278.5°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#1D175D
RGBrgb(29, 23, 93)
HSLhsl(245, 60%, 23%)
HSVhsv(245, 75%, 36%)
CMYKcmyk(68.8%, 75.3%, 0%, 63.5%)
CIE-LABlab(13.62, 26.55, -40.74)
CIE-LCHlch(13.62, 48.63, 303.10°)
OKLaboklab(26.67% 0.0175 -0.1175)
OKLCHoklch(26.67% 0.119 278.5)
XYZxyz(2.7882, 1.6641, 10.5281)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D175D #575D17
analogous
#17345D #1D175D #40175D
triadic
#1D175D #5D1D17 #175D1D
tetradic
#1D175D #5D1734 #575D17 #175D40
square
#1D175D #5D1734 #575D17 #175D40
split-complementary
#1D175D #5D4017 #345D17
monochromatic
#080619 #0E0B2C #1D175D #2C238E #3C2FBF

Accessibility & contrast

On white

15.76
#1D175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1D175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D175D
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D175D#FFFFFF#000000##FFFFFF
##1D175D1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1d175d;
/* rgb */ color: rgb(29, 23, 93);
/* oklch */ color: oklch(26.7% 0.119 278.5);
Tailwind
colors: {
  custom: {
    50: '#63558c',
    500: '#1d175d',
    950: '#000000',
  },
}
SCSS
$custom: #1d175d;
$custom-light: #63558c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d175d",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 245.143,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26665,
    "c": 0.11884,
    "h": 278.5
  },
  "luminance": 0.01664
}

Semantic roles & 50–950 ramp

primary
#1D175D
secondary
#8C943C
accent
#E344D6
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1D175D

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

Preview Lab → · Contrast checker → · Palette generator →

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