#1D175B#1D175B

#1D175B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.5% C 0.116 H 278.9°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#1D175B
RGBrgb(29, 23, 91)
HSLhsl(245, 60%, 22%)
HSVhsv(245, 75%, 36%)
CMYKcmyk(68.1%, 74.7%, 0%, 64.3%)
CIE-LABlab(13.41, 25.83, -39.74)
CIE-LCHlch(13.41, 47.39, 303.02°)
OKLaboklab(26.45% 0.0179 -0.1146)
OKLCHoklch(26.45% 0.116 278.9)
XYZxyz(2.7008, 1.6291, 10.0676)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D175B #555B17
analogous
#17335B #1D175B #3F175B
triadic
#1D175B #5B1D17 #175B1D
tetradic
#1D175B #5B1733 #555B17 #175B3F
square
#1D175B #5B1733 #555B17 #175B3F
split-complementary
#1D175B #5B3F17 #335B17
monochromatic
#080618 #0D0B2A #1D175B #2D238C #3C30BD

Accessibility & contrast

On white

15.84
#1D175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D175B
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D175B#FFFFFF#000000##FFFFFF
##1D175B1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1d175b;
/* rgb */ color: rgb(29, 23, 91);
/* oklch */ color: oklch(26.5% 0.116 278.9);
Tailwind
colors: {
  custom: {
    50: '#62558a',
    500: '#1d175b',
    950: '#000000',
  },
}
SCSS
$custom: #1d175b;
$custom-light: #62558a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d175b",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 245.294,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26451,
    "c": 0.11601,
    "h": 278.9
  },
  "luminance": 0.01629
}

Semantic roles & 50–950 ramp

primary
#1D175B
secondary
#8A923C
accent
#E345D5
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1D175B

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

Preview Lab → · Contrast checker → · Palette generator →

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