#0F172E#0F172E

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

Color values

HEX#0F172E
RGBrgb(15, 23, 46)
HSLhsl(225, 51%, 12%)
HSVhsv(225, 67%, 18%)
CMYKcmyk(67.4%, 50%, 0%, 82%)
CIE-LABlab(8.23, 4.98, -16.60)
CIE-LCHlch(8.23, 17.33, 286.71°)
OKLaboklab(21.06% -0.0018 -0.0471)
OKLCHoklch(21.06% 0.047 267.8)
XYZxyz(0.9964, 0.9115, 2.7077)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F172E #2E260F
analogous
#0F272E #0F172E #170F2E
triadic
#0F172E #2E0F17 #172E0F
tetradic
#0F172E #2E0F27 #2E260F #0F2E17
square
#0F172E #2E0F27 #2E260F #0F2E17
split-complementary
#0F172E #2E170F #272E0F
monochromatic
#080C17 #080C17 #0F172E #1E2E5C #2D458A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F172E#FFFFFF#000000##FFFFFF
##0F172E1.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)
#0D192F
Deuteranopia (green-blind)
#0A172E
Tritanopia (blue-blind)
#021C20
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f172e;
/* rgb */ color: rgb(15, 23, 46);
/* oklch */ color: oklch(21.1% 0.047 267.8);
Tailwind
colors: {
  custom: {
    50: '#505367',
    500: '#0f172e',
    950: '#000000',
  },
}
SCSS
$custom: #0f172e;
$custom-light: #505367;
$custom-dark: #000000;
JSON
{
  "hex": "#0f172e",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 224.516,
    "s": 50.82,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21064,
    "c": 0.04716,
    "h": 267.8
  },
  "luminance": 0.00912
}

Semantic roles & 50–950 ramp

primary
#0F172E
secondary
#685A31
accent
#B64DDA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0F172E

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

Preview Lab → · Contrast checker → · Palette generator →

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