#1D175F#1D175F

#1D175F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.9% C 0.122 H 278.1°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#1D175F
RGBrgb(29, 23, 95)
HSLhsl(245, 61%, 23%)
HSVhsv(245, 76%, 37%)
CMYKcmyk(69.5%, 75.8%, 0%, 62.7%)
CIE-LABlab(13.83, 27.28, -41.72)
CIE-LCHlch(13.83, 49.85, 303.18°)
OKLaboklab(26.88% 0.0171 -0.1204)
OKLCHoklch(26.88% 0.122 278.1)
XYZxyz(2.8780, 1.7000, 11.0007)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D175F #595F17
analogous
#17355F #1D175F #41175F
triadic
#1D175F #5F1D17 #175F1D
tetradic
#1D175F #5F1735 #595F17 #175F41
square
#1D175F #5F1735 #595F17 #175F41
split-complementary
#1D175F #5F4117 #355F17
monochromatic
#080619 #0E0B2E #1D175F #2C2390 #3B2FC2

Accessibility & contrast

On white

15.67
#1D175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D175F
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D175F#FFFFFF#000000##FFFFFF
##1D175F1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1d175f;
/* rgb */ color: rgb(29, 23, 95);
/* oklch */ color: oklch(26.9% 0.122 278.1);
Tailwind
colors: {
  custom: {
    50: '#63558d',
    500: '#1d175f',
    950: '#000000',
  },
}
SCSS
$custom: #1d175f;
$custom-light: #63558d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d175f",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 245,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2688,
    "c": 0.12165,
    "h": 278.1
  },
  "luminance": 0.017
}

Semantic roles & 50–950 ramp

primary
#1D175F
secondary
#8E963C
accent
#E444D7
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1D175F

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

Preview Lab → · Contrast checker → · Palette generator →

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