#0D173E#0D173E

#0D173E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.3% C 0.076 H 268.6°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#0D173E
RGBrgb(13, 23, 62)
HSLhsl(228, 65%, 15%)
HSVhsv(228, 79%, 24%)
CMYKcmyk(79%, 62.9%, 0%, 75.7%)
CIE-LABlab(9.37, 11.49, -26.36)
CIE-LCHlch(9.37, 28.75, 293.55°)
OKLaboklab(22.3% -0.0018 -0.0758)
OKLCHoklch(22.3% 0.076 268.6)
XYZxyz(1.3416, 1.0460, 4.6877)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D173E #3E340D
analogous
#0D303E #0D173E #1C0D3E
triadic
#0D173E #3E0D17 #173E0D
tetradic
#0D173E #3E0D30 #3E340D #0D3E1C
square
#0D173E #3E0D30 #3E340D #0D3E1C
split-complementary
#0D173E #3E1C0D #303E0D
monochromatic
#050919 #050919 #0D173E #182A71 #223DA3

Accessibility & contrast

On white

17.37
#0D173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D173E
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D173E#FFFFFF#000000##FFFFFF
##0D173E1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D3F
Deuteranopia (green-blind)
#00183D
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d173e;
/* rgb */ color: rgb(13, 23, 62);
/* oklch */ color: oklch(22.3% 0.076 268.6);
Tailwind
colors: {
  custom: {
    50: '#535374',
    500: '#0d173e',
    950: '#000000',
  },
}
SCSS
$custom: #0d173e;
$custom-light: #535374;
$custom-dark: #000000;
JSON
{
  "hex": "#0d173e",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 227.755,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22301,
    "c": 0.07587,
    "h": 268.6
  },
  "luminance": 0.01046
}

Semantic roles & 50–950 ramp

primary
#0D173E
secondary
#7A6A2D
accent
#C640E8
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0D173E

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

Preview Lab → · Contrast checker → · Palette generator →

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