#0D182B#0D182B

#0D182B is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.0% C 0.041 H 260.8°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#0D182B
RGBrgb(13, 24, 43)
HSLhsl(218, 54%, 11%)
HSVhsv(218, 70%, 17%)
CMYKcmyk(69.8%, 44.2%, 0%, 83.1%)
CIE-LABlab(8.25, 2.38, -14.37)
CIE-LCHlch(8.25, 14.56, 279.39°)
OKLaboklab(20.97% -0.0066 -0.0406)
OKLCHoklch(20.97% 0.041 260.8)
XYZxyz(0.9285, 0.9132, 2.4124)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D182B #2B200D
analogous
#0D272B #0D182B #110D2B
triadic
#0D182B #2B0D18 #182B0D
tetradic
#0D182B #2B0D27 #2B200D #0D2B11
square
#0D182B #2B0D27 #2B200D #0D2B11
split-complementary
#0D182B #2B110D #272B0D
monochromatic
#070D17 #070D17 #0D182B #1B325A #294C89

Accessibility & contrast

On white

17.76
#0D182B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0D182B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D182B
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D182B#FFFFFF#000000##FFFFFF
##0D182B1.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101A2C
Deuteranopia (green-blind)
#0C172B
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0d182b;
/* rgb */ color: rgb(13, 24, 43);
/* oklch */ color: oklch(21.0% 0.041 260.8);
Tailwind
colors: {
  custom: {
    50: '#4e5464',
    500: '#0d182b',
    950: '#000000',
  },
}
SCSS
$custom: #0d182b;
$custom-light: #4e5464;
$custom-dark: #000000;
JSON
{
  "hex": "#0d182b",
  "rgb": {
    "r": 13,
    "g": 24,
    "b": 43
  },
  "hsl": {
    "h": 218,
    "s": 53.571,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20972,
    "c": 0.04116,
    "h": 260.8
  },
  "luminance": 0.00913
}

Semantic roles & 50–950 ramp

primary
#0D182B
secondary
#66512E
accent
#A74BDD
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #0D182B

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

Preview Lab → · Contrast checker → · Palette generator →

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