#0A172F#0A172F

#0A172F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.8% C 0.051 H 261.6°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#0A172F
RGBrgb(10, 23, 47)
HSLhsl(219, 65%, 11%)
HSVhsv(219, 79%, 18%)
CMYKcmyk(78.7%, 51.1%, 0%, 81.6%)
CIE-LABlab(7.97, 4.17, -17.77)
CIE-LCHlch(7.97, 18.25, 283.21°)
OKLaboklab(20.8% -0.0075 -0.0507)
OKLCHoklch(20.8% 0.051 261.6)
XYZxyz(0.9445, 0.8825, 2.8093)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A172F #2F220A
analogous
#0A292F #0A172F #0F0A2F
triadic
#0A172F #2F0A17 #172F0A
tetradic
#0A172F #2F0A29 #2F220A #0A2F0F
square
#0A172F #2F0A29 #2F220A #0A2F0F
split-complementary
#0A172F #2F0F0A #292F0A
monochromatic
#050C19 #050C19 #0A172F #153061 #1F4894

Accessibility & contrast

On white

17.85
#0A172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A172F
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A172F#FFFFFF#000000##FFFFFF
##0A172F1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1930
Deuteranopia (green-blind)
#07162F
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0a172f;
/* rgb */ color: rgb(10, 23, 47);
/* oklch */ color: oklch(20.8% 0.051 261.6);
Tailwind
colors: {
  custom: {
    50: '#4e5367',
    500: '#0a172f',
    950: '#000000',
  },
}
SCSS
$custom: #0a172f;
$custom-light: #4e5367;
$custom-dark: #000000;
JSON
{
  "hex": "#0a172f",
  "rgb": {
    "r": 10,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 218.919,
    "s": 64.912,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20797,
    "c": 0.05122,
    "h": 261.6
  },
  "luminance": 0.00883
}

Semantic roles & 50–950 ramp

primary
#0A172F
secondary
#6C5429
accent
#AD40E8
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0A172F

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

Preview Lab → · Contrast checker → · Palette generator →

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