#0D173A#0D173A

#0D173A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.069 H 268.2°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#0D173A
RGBrgb(13, 23, 58)
HSLhsl(227, 63%, 14%)
HSVhsv(227, 78%, 23%)
CMYKcmyk(77.6%, 60.3%, 0%, 77.3%)
CIE-LABlab(9.02, 9.72, -24.06)
CIE-LCHlch(9.02, 25.95, 291.99°)
OKLaboklab(21.93% -0.0021 -0.0691)
OKLCHoklch(21.93% 0.069 268.2)
XYZxyz(1.2358, 1.0037, 4.1308)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D173A #3A300D
analogous
#0D2E3A #0D173A #1A0D3A
triadic
#0D173A #3A0D17 #173A0D
tetradic
#0D173A #3A0D2E #3A300D #0D3A1A
square
#0D173A #3A0D2E #3A300D #0D3A1A
split-complementary
#0D173A #3A1A0D #2E3A0D
monochromatic
#060A19 #060A19 #0D173A #182B6C #233F9E

Accessibility & contrast

On white

17.49
#0D173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0D173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D173A
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D173A#FFFFFF#000000##FFFFFF
##0D173A1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3B
Deuteranopia (green-blind)
#001839
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d173a;
/* rgb */ color: rgb(13, 23, 58);
/* oklch */ color: oklch(21.9% 0.069 268.2);
Tailwind
colors: {
  custom: {
    50: '#525370',
    500: '#0d173a',
    950: '#000000',
  },
}
SCSS
$custom: #0d173a;
$custom-light: #525370;
$custom-dark: #000000;
JSON
{
  "hex": "#0d173a",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 226.667,
    "s": 63.38,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21929,
    "c": 0.06913,
    "h": 268.2
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#0D173A
secondary
#76652D
accent
#C241E6
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #0D173A

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

Preview Lab → · Contrast checker → · Palette generator →

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