#0D173B#0D173B

#0D173B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.071 H 268.3°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#0D173B
RGBrgb(13, 23, 59)
HSLhsl(227, 64%, 14%)
HSVhsv(227, 78%, 23%)
CMYKcmyk(78%, 61%, 0%, 76.9%)
CIE-LABlab(9.11, 10.16, -24.64)
CIE-LCHlch(9.11, 26.65, 292.41°)
OKLaboklab(22.02% -0.002 -0.0708)
OKLCHoklch(22.02% 0.071 268.3)
XYZxyz(1.2615, 1.0140, 4.2661)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D173B #3B310D
analogous
#0D2E3B #0D173B #1A0D3B
triadic
#0D173B #3B0D17 #173B0D
tetradic
#0D173B #3B0D2E #3B310D #0D3B1A
square
#0D173B #3B0D2E #3B310D #0D3B1A
split-complementary
#0D173B #3B1A0D #2E3B0D
monochromatic
#060A19 #060A19 #0D173B #182B6D #233E9F

Accessibility & contrast

On white

17.46
#0D173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D173B
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D173B#FFFFFF#000000##FFFFFF
##0D173B1.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3C
Deuteranopia (green-blind)
#00183A
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0d173b;
/* rgb */ color: rgb(13, 23, 59);
/* oklch */ color: oklch(22.0% 0.071 268.3);
Tailwind
colors: {
  custom: {
    50: '#525371',
    500: '#0d173b',
    950: '#000000',
  },
}
SCSS
$custom: #0d173b;
$custom-light: #525371;
$custom-dark: #000000;
JSON
{
  "hex": "#0d173b",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 226.957,
    "s": 63.889,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22021,
    "c": 0.07083,
    "h": 268.3
  },
  "luminance": 0.01014
}

Semantic roles & 50–950 ramp

primary
#0D173B
secondary
#77672D
accent
#C341E7
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #0D173B

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

Preview Lab → · Contrast checker → · Palette generator →

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