#0D173C#0D173C

#0D173C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.073 H 268.5°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#0D173C
RGBrgb(13, 23, 60)
HSLhsl(227, 64%, 14%)
HSVhsv(227, 78%, 24%)
CMYKcmyk(78.3%, 61.7%, 0%, 76.5%)
CIE-LABlab(9.19, 10.60, -25.22)
CIE-LCHlch(9.19, 27.35, 292.80°)
OKLaboklab(22.11% -0.0019 -0.0725)
OKLCHoklch(22.11% 0.073 268.5)
XYZxyz(1.2877, 1.0245, 4.4040)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D173C #3C320D
analogous
#0D2F3C #0D173C #1B0D3C
triadic
#0D173C #3C0D17 #173C0D
tetradic
#0D173C #3C0D2F #3C320D #0D3C1B
square
#0D173C #3C0D2F #3C320D #0D3C1B
split-complementary
#0D173C #3C1B0D #2F3C0D
monochromatic
#050A19 #050A19 #0D173C #182A6E #233EA1

Accessibility & contrast

On white

17.43
#0D173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0D173C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D173C
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D173C#FFFFFF#000000##FFFFFF
##0D173C1.0017.431.2117.43
#FFFFFF17.431.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011C3D
Deuteranopia (green-blind)
#00183B
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d173c;
/* rgb */ color: rgb(13, 23, 60);
/* oklch */ color: oklch(22.1% 0.073 268.5);
Tailwind
colors: {
  custom: {
    50: '#535372',
    500: '#0d173c',
    950: '#000000',
  },
}
SCSS
$custom: #0d173c;
$custom-light: #535372;
$custom-dark: #000000;
JSON
{
  "hex": "#0d173c",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 227.234,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22113,
    "c": 0.07252,
    "h": 268.5
  },
  "luminance": 0.01025
}

Semantic roles & 50–950 ramp

primary
#0D173C
secondary
#78682D
accent
#C440E7
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0D173C

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

Preview Lab → · Contrast checker → · Palette generator →

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