#0D174E#0D174E

#0D174E is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.101 H 269.0°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#0D174E
RGBrgb(13, 23, 78)
HSLhsl(231, 71%, 18%)
HSVhsv(231, 83%, 31%)
CMYKcmyk(83.3%, 70.5%, 0%, 69.4%)
CIE-LABlab(10.91, 18.44, -35.04)
CIE-LCHlch(10.91, 39.60, 297.76°)
OKLaboklab(23.92% -0.0017 -0.1013)
OKLCHoklch(23.92% 0.101 269)
XYZxyz(1.8470, 1.2482, 7.3498)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D174E #4E440D
analogous
#0D374E #0D174E #230D4E
triadic
#0D174E #4E0D17 #174E0D
tetradic
#0D174E #4E0D37 #4E440D #0D4E23
square
#0D174E #4E0D37 #4E440D #0D4E23
split-complementary
#0D174E #4E230D #374E0D
monochromatic
#04081A #04081A #0D174E #162682 #1E36B7

Accessibility & contrast

On white

16.81
#0D174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0D174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D174E
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D174E#FFFFFF#000000##FFFFFF
##0D174E1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#001A4D
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0d174e;
/* rgb */ color: rgb(13, 23, 78);
/* oklch */ color: oklch(23.9% 0.101 269.0);
Tailwind
colors: {
  custom: {
    50: '#585380',
    500: '#0d174e',
    950: '#000000',
  },
}
SCSS
$custom: #0d174e;
$custom-light: #585380;
$custom-dark: #000000;
JSON
{
  "hex": "#0d174e",
  "rgb": {
    "r": 13,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 230.769,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23924,
    "c": 0.10135,
    "h": 269
  },
  "luminance": 0.01248
}

Semantic roles & 50–950 ramp

primary
#0D174E
secondary
#897B2E
accent
#D23AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0D174E

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

Preview Lab → · Contrast checker → · Palette generator →

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