#0D172B#0D172B

#0D172B is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.7% C 0.043 H 263.1°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#0D172B
RGBrgb(13, 23, 43)
HSLhsl(220, 54%, 11%)
HSVhsv(220, 70%, 17%)
CMYKcmyk(69.8%, 46.5%, 0%, 83.1%)
CIE-LABlab(7.88, 3.16, -14.94)
CIE-LCHlch(7.88, 15.27, 281.94°)
OKLaboklab(20.69% -0.0051 -0.0423)
OKLCHoklch(20.69% 0.043 263.1)
XYZxyz(0.9083, 0.8727, 2.4056)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D172B #2B210D
analogous
#0D262B #0D172B #120D2B
triadic
#0D172B #2B0D17 #172B0D
tetradic
#0D172B #2B0D26 #2B210D #0D2B12
square
#0D172B #2B0D26 #2B210D #0D2B12
split-complementary
#0D172B #2B120D #262B0D
monochromatic
#070D17 #070D17 #0D172B #1B305A #294989

Accessibility & contrast

On white

17.88
#0D172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0D172B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D172B
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D172B#FFFFFF#000000##FFFFFF
##0D172B1.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192C
Deuteranopia (green-blind)
#0B162B
Tritanopia (blue-blind)
#001B1E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0d172b;
/* rgb */ color: rgb(13, 23, 43);
/* oklch */ color: oklch(20.7% 0.043 263.1);
Tailwind
colors: {
  custom: {
    50: '#4e5364',
    500: '#0d172b',
    950: '#000000',
  },
}
SCSS
$custom: #0d172b;
$custom-light: #4e5364;
$custom-dark: #000000;
JSON
{
  "hex": "#0d172b",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 220,
    "s": 53.571,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20689,
    "c": 0.04263,
    "h": 263.1
  },
  "luminance": 0.00873
}

Semantic roles & 50–950 ramp

primary
#0D172B
secondary
#66532E
accent
#AC4BDD
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #0D172B

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

Preview Lab → · Contrast checker → · Palette generator →

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