#0D172C#0D172C

#0D172C is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.8% C 0.044 H 263.7°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#0D172C
RGBrgb(13, 23, 44)
HSLhsl(221, 54%, 11%)
HSVhsv(221, 70%, 17%)
CMYKcmyk(70.5%, 47.7%, 0%, 82.7%)
CIE-LABlab(7.95, 3.59, -15.58)
CIE-LCHlch(7.95, 15.99, 282.97°)
OKLaboklab(20.76% -0.0049 -0.0442)
OKLCHoklch(20.76% 0.044 263.7)
XYZxyz(0.9268, 0.8801, 2.5034)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D172C #2C220D
analogous
#0D262C #0D172C #120D2C
triadic
#0D172C #2C0D17 #172C0D
tetradic
#0D172C #2C0D26 #2C220D #0D2C12
square
#0D172C #2C0D26 #2C220D #0D2C12
split-complementary
#0D172C #2C120D #262C0D
monochromatic
#070C18 #070C18 #0D172C #1B305B #29488A

Accessibility & contrast

On white

17.86
#0D172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0D172C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D172C
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D172C#FFFFFF#000000##FFFFFF
##0D172C1.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192D
Deuteranopia (green-blind)
#0A162C
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0d172c;
/* rgb */ color: rgb(13, 23, 44);
/* oklch */ color: oklch(20.8% 0.044 263.7);
Tailwind
colors: {
  custom: {
    50: '#4f5365',
    500: '#0d172c',
    950: '#000000',
  },
}
SCSS
$custom: #0d172c;
$custom-light: #4f5365;
$custom-dark: #000000;
JSON
{
  "hex": "#0d172c",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 220.645,
    "s": 54.386,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20764,
    "c": 0.04445,
    "h": 263.7
  },
  "luminance": 0.0088
}

Semantic roles & 50–950 ramp

primary
#0D172C
secondary
#67542E
accent
#AE4ADE
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #0D172C

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

Preview Lab → · Contrast checker → · Palette generator →

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