#0F152D#0F152D

#0F152D is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.4% C 0.049 H 271.0°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#0F152D
RGBrgb(15, 21, 45)
HSLhsl(228, 50%, 12%)
HSVhsv(228, 67%, 18%)
CMYKcmyk(66.7%, 53.3%, 0%, 82.4%)
CIE-LABlab(7.47, 6.10, -17.07)
CIE-LCHlch(7.47, 18.12, 289.67°)
OKLaboklab(20.45% 0.0009 -0.0486)
OKLCHoklch(20.45% 0.049 271)
XYZxyz(0.9387, 0.8273, 2.5923)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F152D #2D270F
analogous
#0F242D #0F152D #180F2D
triadic
#0F152D #2D0F15 #152D0F
tetradic
#0F152D #2D0F24 #2D270F #0F2D18
square
#0F152D #2D0F24 #2D270F #0F2D18
split-complementary
#0F152D #2D180F #242D0F
monochromatic
#080B17 #080B17 #0F152D #1E2A5B #2E4089

Accessibility & contrast

On white

18.02
#0F152D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F152D
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F152D#FFFFFF#000000##FFFFFF
##0F152D1.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B182E
Deuteranopia (green-blind)
#07152C
Tritanopia (blue-blind)
#021A1E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0f152d;
/* rgb */ color: rgb(15, 21, 45);
/* oklch */ color: oklch(20.4% 0.049 271.0);
Tailwind
colors: {
  custom: {
    50: '#505166',
    500: '#0f152d',
    950: '#000000',
  },
}
SCSS
$custom: #0f152d;
$custom-light: #505166;
$custom-dark: #000000;
JSON
{
  "hex": "#0f152d",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 45
  },
  "hsl": {
    "h": 228,
    "s": 50,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2045,
    "c": 0.04858,
    "h": 271
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#0F152D
secondary
#665C31
accent
#BE4EDA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0F152D

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

Preview Lab → · Contrast checker → · Palette generator →

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