#0D174D#0D174D

#0D174D is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.100 H 269.0°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#0D174D
RGBrgb(13, 23, 77)
HSLhsl(231, 71%, 18%)
HSVhsv(231, 83%, 30%)
CMYKcmyk(83.1%, 70.1%, 0%, 69.8%)
CIE-LABlab(10.81, 18.02, -34.52)
CIE-LCHlch(10.81, 38.94, 297.56°)
OKLaboklab(23.82% -0.0017 -0.0998)
OKLCHoklch(23.82% 0.1 269)
XYZxyz(1.8115, 1.2340, 7.1625)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D174D #4D430D
analogous
#0D374D #0D174D #230D4D
triadic
#0D174D #4D0D17 #174D0D
tetradic
#0D174D #4D0D37 #4D430D #0D4D23
square
#0D174D #4D0D37 #4D430D #0D4D23
split-complementary
#0D174D #4D230D #374D0D
monochromatic
#04081A #04081A #0D174D #162781 #1F36B6

Accessibility & contrast

On white

16.84
#0D174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0D174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D174D
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D174D#FFFFFF#000000##FFFFFF
##0D174D1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001A4C
Tritanopia (blue-blind)
#00252F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0d174d;
/* rgb */ color: rgb(13, 23, 77);
/* oklch */ color: oklch(23.8% 0.100 269.0);
Tailwind
colors: {
  custom: {
    50: '#58537f',
    500: '#0d174d',
    950: '#000000',
  },
}
SCSS
$custom: #0d174d;
$custom-light: #58537f;
$custom-dark: #000000;
JSON
{
  "hex": "#0d174d",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 230.625,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23817,
    "c": 0.09982,
    "h": 269
  },
  "luminance": 0.01234
}

Semantic roles & 50–950 ramp

primary
#0D174D
secondary
#887A2E
accent
#D23AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0D174D

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

Preview Lab → · Contrast checker → · Palette generator →

#0D174D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva