#0A172C#0A172C

#0A172C is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.6% C 0.046 H 259.6°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#0A172C
RGBrgb(10, 23, 44)
HSLhsl(217, 63%, 11%)
HSVhsv(217, 77%, 17%)
CMYKcmyk(77.3%, 47.7%, 0%, 82.7%)
CIE-LABlab(7.76, 2.81, -15.89)
CIE-LCHlch(7.76, 16.14, 280.04°)
OKLaboklab(20.56% -0.0083 -0.0452)
OKLCHoklch(20.56% 0.046 259.6)
XYZxyz(0.8860, 0.8591, 2.5015)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A172C #2C1F0A
analogous
#0A282C #0A172C #0E0A2C
triadic
#0A172C #2C0A17 #172C0A
tetradic
#0A172C #2C0A28 #2C1F0A #0A2C0E
square
#0A172C #2C0A28 #2C1F0A #0A2C0E
split-complementary
#0A172C #2C0E0A #282C0A
monochromatic
#060D19 #060D19 #0A172C #15315E #214B90

Accessibility & contrast

On white

17.92
#0A172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0A172C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A172C
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A172C#FFFFFF#000000##FFFFFF
##0A172C1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192D
Deuteranopia (green-blind)
#09162C
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0a172c;
/* rgb */ color: rgb(10, 23, 44);
/* oklch */ color: oklch(20.6% 0.046 259.6);
Tailwind
colors: {
  custom: {
    50: '#4d5365',
    500: '#0a172c',
    950: '#000000',
  },
}
SCSS
$custom: #0a172c;
$custom-light: #4d5365;
$custom-dark: #000000;
JSON
{
  "hex": "#0a172c",
  "rgb": {
    "r": 10,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 217.059,
    "s": 62.963,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20563,
    "c": 0.04593,
    "h": 259.6
  },
  "luminance": 0.00859
}

Semantic roles & 50–950 ramp

primary
#0A172C
secondary
#695029
accent
#A742E6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #0A172C

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

Preview Lab → · Contrast checker → · Palette generator →

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