#0F172D#0F172D

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

Color values

HEX#0F172D
RGBrgb(15, 23, 45)
HSLhsl(224, 50%, 12%)
HSVhsv(224, 67%, 18%)
CMYKcmyk(66.7%, 48.9%, 0%, 82.4%)
CIE-LABlab(8.16, 4.56, -15.97)
CIE-LCHlch(8.16, 16.61, 285.95°)
OKLaboklab(20.99% -0.0021 -0.0453)
OKLCHoklch(20.99% 0.045 267.4)
XYZxyz(0.9769, 0.9037, 2.6051)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F172D #2D250F
analogous
#0F262D #0F172D #160F2D
triadic
#0F172D #2D0F17 #172D0F
tetradic
#0F172D #2D0F26 #2D250F #0F2D16
square
#0F172D #2D0F26 #2D250F #0F2D16
split-complementary
#0F172D #2D160F #262D0F
monochromatic
#080C17 #080C17 #0F172D #1E2E5B #2E4689

Accessibility & contrast

On white

17.78
#0F172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F172D
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F172D#FFFFFF#000000##FFFFFF
##0F172D1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192E
Deuteranopia (green-blind)
#0A172D
Tritanopia (blue-blind)
#021C1F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f172d;
/* rgb */ color: rgb(15, 23, 45);
/* oklch */ color: oklch(21.0% 0.045 267.4);
Tailwind
colors: {
  custom: {
    50: '#505366',
    500: '#0f172d',
    950: '#000000',
  },
}
SCSS
$custom: #0f172d;
$custom-light: #505366;
$custom-dark: #000000;
JSON
{
  "hex": "#0f172d",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 224,
    "s": 50,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20988,
    "c": 0.04533,
    "h": 267.4
  },
  "luminance": 0.00904
}

Semantic roles & 50–950 ramp

primary
#0F172D
secondary
#665831
accent
#B44EDA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0F172D

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

Preview Lab → · Contrast checker → · Palette generator →

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