#0D173F#0D173F

#0D173F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.4% C 0.078 H 268.7°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#0D173F
RGBrgb(13, 23, 63)
HSLhsl(228, 66%, 15%)
HSVhsv(228, 79%, 25%)
CMYKcmyk(79.4%, 63.5%, 0%, 75.3%)
CIE-LABlab(9.46, 11.93, -26.92)
CIE-LCHlch(9.46, 29.45, 293.90°)
OKLaboklab(22.4% -0.0017 -0.0775)
OKLCHoklch(22.4% 0.078 268.7)
XYZxyz(1.3693, 1.0571, 4.8335)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D173F #3F350D
analogous
#0D303F #0D173F #1C0D3F
triadic
#0D173F #3F0D17 #173F0D
tetradic
#0D173F #3F0D30 #3F350D #0D3F1C
square
#0D173F #3F0D30 #3F350D #0D3F1C
split-complementary
#0D173F #3F1C0D #303F0D
monochromatic
#050919 #050919 #0D173F #172A72 #223CA4

Accessibility & contrast

On white

17.34
#0D173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D173F
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D173F#FFFFFF#000000##FFFFFF
##0D173F1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d173f;
/* rgb */ color: rgb(13, 23, 63);
/* oklch */ color: oklch(22.4% 0.078 268.7);
Tailwind
colors: {
  custom: {
    50: '#545374',
    500: '#0d173f',
    950: '#000000',
  },
}
SCSS
$custom: #0d173f;
$custom-light: #545374;
$custom-dark: #000000;
JSON
{
  "hex": "#0d173f",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 228,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22396,
    "c": 0.07754,
    "h": 268.7
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#0D173F
secondary
#7B6B2D
accent
#C73FE9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D173F

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

Preview Lab → · Contrast checker → · Palette generator →

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