#0F152A#0F152A

#0F152A is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.2% C 0.043 H 270.2°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#0F152A
RGBrgb(15, 21, 42)
HSLhsl(227, 47%, 11%)
HSVhsv(227, 64%, 16%)
CMYKcmyk(64.3%, 50%, 0%, 83.5%)
CIE-LABlab(7.27, 4.80, -15.15)
CIE-LCHlch(7.27, 15.90, 287.57°)
OKLaboklab(20.22% 0.0001 -0.043)
OKLCHoklch(20.22% 0.043 270.2)
XYZxyz(0.8829, 0.8050, 2.2989)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F152A #2A240F
analogous
#0F222A #0F152A #160F2A
triadic
#0F152A #2A0F15 #152A0F
tetradic
#0F152A #2A0F22 #2A240F #0F2A16
square
#0F152A #2A0F22 #2A240F #0F2A16
split-complementary
#0F152A #2A160F #222A0F
monochromatic
#080B17 #080B17 #0F152A #1F2C57 #2F4284

Accessibility & contrast

On white

18.09
#0F152A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0F152A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F152A
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F152A#FFFFFF#000000##FFFFFF
##0F152A1.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D172B
Deuteranopia (green-blind)
#0A152A
Tritanopia (blue-blind)
#041A1D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0f152a;
/* rgb */ color: rgb(15, 21, 42);
/* oklch */ color: oklch(20.2% 0.043 270.2);
Tailwind
colors: {
  custom: {
    50: '#4f5263',
    500: '#0f152a',
    950: '#000000',
  },
}
SCSS
$custom: #0f152a;
$custom-light: #4f5263;
$custom-dark: #000000;
JSON
{
  "hex": "#0f152a",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 42
  },
  "hsl": {
    "h": 226.667,
    "s": 47.368,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20217,
    "c": 0.04303,
    "h": 270.2
  },
  "luminance": 0.00805
}

Semantic roles & 50–950 ramp

primary
#0F152A
secondary
#635832
accent
#B951D7
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020205
muted
#787879

Preview Lab

Preview with #0F152A

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

Preview Lab → · Contrast checker → · Palette generator →

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