#0D172E#0D172E

#0D172E is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.9% C 0.048 H 264.9°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#0D172E
RGBrgb(13, 23, 46)
HSLhsl(222, 56%, 12%)
HSVhsv(222, 72%, 18%)
CMYKcmyk(71.7%, 50%, 0%, 82%)
CIE-LABlab(8.09, 4.45, -16.83)
CIE-LCHlch(8.09, 17.41, 284.80°)
OKLaboklab(20.92% -0.0043 -0.0479)
OKLCHoklch(20.92% 0.048 264.9)
XYZxyz(0.9653, 0.8955, 2.7062)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D172E #2E240D
analogous
#0D282E #0D172E #140D2E
triadic
#0D172E #2E0D17 #172E0D
tetradic
#0D172E #2E0D28 #2E240D #0D2E14
square
#0D172E #2E0D28 #2E240D #0D2E14
split-complementary
#0D172E #2E140D #282E0D
monochromatic
#070C18 #070C18 #0D172E #1A2F5E #28478D

Accessibility & contrast

On white

17.81
#0D172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D172E
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D172E#FFFFFF#000000##FFFFFF
##0D172E1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D192F
Deuteranopia (green-blind)
#09162E
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0d172e;
/* rgb */ color: rgb(13, 23, 46);
/* oklch */ color: oklch(20.9% 0.048 264.9);
Tailwind
colors: {
  custom: {
    50: '#4f5367',
    500: '#0d172e',
    950: '#000000',
  },
}
SCSS
$custom: #0d172e;
$custom-light: #4f5367;
$custom-dark: #000000;
JSON
{
  "hex": "#0d172e",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 221.818,
    "s": 55.932,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20916,
    "c": 0.04805,
    "h": 264.9
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#0D172E
secondary
#69572E
accent
#B249DF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0D172E

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

Preview Lab → · Contrast checker → · Palette generator →

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