#0F172C#0F172C

#0F172C is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.9% C 0.043 H 266.9°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#0F172C
RGBrgb(15, 23, 44)
HSLhsl(223, 49%, 12%)
HSVhsv(223, 66%, 17%)
CMYKcmyk(65.9%, 47.7%, 0%, 82.7%)
CIE-LABlab(8.09, 4.15, -15.34)
CIE-LCHlch(8.09, 15.89, 285.13°)
OKLaboklab(20.91% -0.0024 -0.0434)
OKLCHoklch(20.91% 0.043 266.9)
XYZxyz(0.9579, 0.8961, 2.5049)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F172C #2C240F
analogous
#0F262C #0F172C #160F2C
triadic
#0F172C #2C0F17 #172C0F
tetradic
#0F172C #2C0F26 #2C240F #0F2C16
square
#0F172C #2C0F26 #2C240F #0F2C16
split-complementary
#0F172C #2C160F #262C0F
monochromatic
#080C17 #080C17 #0F172C #1F2F5A #2E4787

Accessibility & contrast

On white

17.81
#0F172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F172C
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F172C#FFFFFF#000000##FFFFFF
##0F172C1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192D
Deuteranopia (green-blind)
#0B172C
Tritanopia (blue-blind)
#031C1F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f172c;
/* rgb */ color: rgb(15, 23, 44);
/* oklch */ color: oklch(20.9% 0.043 266.9);
Tailwind
colors: {
  custom: {
    50: '#505365',
    500: '#0f172c',
    950: '#000000',
  },
}
SCSS
$custom: #0f172c;
$custom-light: #505365;
$custom-dark: #000000;
JSON
{
  "hex": "#0f172c",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 223.448,
    "s": 49.153,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20914,
    "c": 0.04349,
    "h": 266.9
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#0F172C
secondary
#655731
accent
#B34FD9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #0F172C

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

Preview Lab → · Contrast checker → · Palette generator →

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