#0F152F#0F152F

#0F152F is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.6% C 0.052 H 271.4°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#0F152F
RGBrgb(15, 21, 47)
HSLhsl(229, 52%, 12%)
HSVhsv(229, 68%, 18%)
CMYKcmyk(68.1%, 55.3%, 0%, 81.6%)
CIE-LABlab(7.62, 6.96, -18.32)
CIE-LCHlch(7.62, 19.60, 290.82°)
OKLaboklab(20.61% 0.0013 -0.0522)
OKLCHoklch(20.61% 0.052 271.4)
XYZxyz(0.9781, 0.8431, 2.8000)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F152F #2F290F
analogous
#0F252F #0F152F #190F2F
triadic
#0F152F #2F0F15 #152F0F
tetradic
#0F152F #2F0F25 #2F290F #0F2F19
square
#0F152F #2F0F25 #2F290F #0F2F19
split-complementary
#0F152F #2F190F #252F0F
monochromatic
#070A17 #070A17 #0F152F #1E2A5D #2D3E8C

Accessibility & contrast

On white

17.97
#0F152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F152F
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F152F#FFFFFF#000000##FFFFFF
##0F152F1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091830
Deuteranopia (green-blind)
#06152E
Tritanopia (blue-blind)
#011B1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f152f;
/* rgb */ color: rgb(15, 21, 47);
/* oklch */ color: oklch(20.6% 0.052 271.4);
Tailwind
colors: {
  custom: {
    50: '#505167',
    500: '#0f152f',
    950: '#000000',
  },
}
SCSS
$custom: #0f152f;
$custom-light: #505167;
$custom-dark: #000000;
JSON
{
  "hex": "#0f152f",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 228.75,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20611,
    "c": 0.05223,
    "h": 271.4
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#0F152F
secondary
#695E31
accent
#C04DDB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0F152F

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

Preview Lab → · Contrast checker → · Palette generator →

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