#0F162F#0F162F

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

Color values

HEX#0F162F
RGBrgb(15, 22, 47)
HSLhsl(227, 52%, 12%)
HSVhsv(227, 68%, 18%)
CMYKcmyk(68.1%, 53.2%, 0%, 81.6%)
CIE-LABlab(7.95, 6.20, -17.78)
CIE-LCHlch(7.95, 18.83, 289.22°)
OKLaboklab(20.87% -0.0001 -0.0506)
OKLCHoklch(20.87% 0.051 269.8)
XYZxyz(0.9968, 0.8805, 2.8062)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F162F #2F280F
analogous
#0F262F #0F162F #180F2F
triadic
#0F162F #2F0F16 #162F0F
tetradic
#0F162F #2F0F26 #2F280F #0F2F18
square
#0F162F #2F0F26 #2F280F #0F2F18
split-complementary
#0F162F #2F180F #262F0F
monochromatic
#070B17 #070B17 #0F162F #1E2C5D #2D418C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F162F#FFFFFF#000000##FFFFFF
##0F162F1.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)
#0B1930
Deuteranopia (green-blind)
#07162E
Tritanopia (blue-blind)
#011C20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f162f;
/* rgb */ color: rgb(15, 22, 47);
/* oklch */ color: oklch(20.9% 0.051 269.8);
Tailwind
colors: {
  custom: {
    50: '#505267',
    500: '#0f162f',
    950: '#000000',
  },
}
SCSS
$custom: #0f162f;
$custom-light: #505267;
$custom-dark: #000000;
JSON
{
  "hex": "#0f162f",
  "rgb": {
    "r": 15,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 226.875,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20874,
    "c": 0.05058,
    "h": 269.8
  },
  "luminance": 0.00881
}

Semantic roles & 50–950 ramp

primary
#0F162F
secondary
#695D31
accent
#BC4DDB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0F162F

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

Preview Lab → · Contrast checker → · Palette generator →

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