#1D175A#1D175A

#1D175A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.3% C 0.115 H 279.1°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#1D175A
RGBrgb(29, 23, 90)
HSLhsl(245, 59%, 22%)
HSVhsv(245, 74%, 35%)
CMYKcmyk(67.8%, 74.4%, 0%, 64.7%)
CIE-LABlab(13.30, 25.46, -39.24)
CIE-LCHlch(13.30, 46.77, 302.98°)
OKLaboklab(26.35% 0.018 -0.1132)
OKLCHoklch(26.35% 0.115 279.1)
XYZxyz(2.6580, 1.6120, 9.8420)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D175A #545A17
analogous
#17335A #1D175A #3F175A
triadic
#1D175A #5A1D17 #175A1D
tetradic
#1D175A #5A1733 #545A17 #175A3F
square
#1D175A #5A1733 #545A17 #175A3F
split-complementary
#1D175A #5A3F17 #335A17
monochromatic
#080618 #0D0B29 #1D175A #2D238B #3C30BB

Accessibility & contrast

On white

15.88
#1D175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1D175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D175A
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D175A#FFFFFF#000000##FFFFFF
##1D175A1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1d175a;
/* rgb */ color: rgb(29, 23, 90);
/* oklch */ color: oklch(26.3% 0.115 279.1);
Tailwind
colors: {
  custom: {
    50: '#625589',
    500: '#1d175a',
    950: '#000000',
  },
}
SCSS
$custom: #1d175a;
$custom-light: #625589;
$custom-dark: #000000;
JSON
{
  "hex": "#1d175a",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 245.373,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26345,
    "c": 0.11459,
    "h": 279.1
  },
  "luminance": 0.01612
}

Semantic roles & 50–950 ramp

primary
#1D175A
secondary
#89913C
accent
#E245D4
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1D175A

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

Preview Lab → · Contrast checker → · Palette generator →

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