#1D175E#1D175E

#1D175E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.120 H 278.3°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#1D175E
RGBrgb(29, 23, 94)
HSLhsl(245, 61%, 23%)
HSVhsv(245, 76%, 37%)
CMYKcmyk(69.1%, 75.5%, 0%, 63.1%)
CIE-LABlab(13.72, 26.92, -41.23)
CIE-LCHlch(13.72, 49.24, 303.14°)
OKLaboklab(26.77% 0.0173 -0.119)
OKLCHoklch(26.77% 0.12 278.3)
XYZxyz(2.8328, 1.6819, 10.7629)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D175E #585E17
analogous
#17355E #1D175E #40175E
triadic
#1D175E #5E1D17 #175E1D
tetradic
#1D175E #5E1735 #585E17 #175E40
square
#1D175E #5E1735 #585E17 #175E40
split-complementary
#1D175E #5E4017 #355E17
monochromatic
#080619 #0E0B2D #1D175E #2C238F #3B2FC0

Accessibility & contrast

On white

15.71
#1D175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1D175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D175E
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D175E#FFFFFF#000000##FFFFFF
##1D175E1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1d175e;
/* rgb */ color: rgb(29, 23, 94);
/* oklch */ color: oklch(26.8% 0.120 278.3);
Tailwind
colors: {
  custom: {
    50: '#63558c',
    500: '#1d175e',
    950: '#000000',
  },
}
SCSS
$custom: #1d175e;
$custom-light: #63558c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d175e",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 245.07,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26772,
    "c": 0.12025,
    "h": 278.3
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#1D175E
secondary
#8D953C
accent
#E444D6
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1D175E

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

Preview Lab → · Contrast checker → · Palette generator →

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