#0F182F#0F182F

#0F182F is a very dark, muted blue. Relative luminance 0.010; OKLCH L 21.4% C 0.047 H 266.4°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#0F182F
RGBrgb(15, 24, 47)
HSLhsl(223, 52%, 12%)
HSVhsv(223, 68%, 18%)
CMYKcmyk(68.1%, 48.9%, 0%, 81.6%)
CIE-LABlab(8.65, 4.62, -16.66)
CIE-LCHlch(8.65, 17.29, 285.48°)
OKLaboklab(21.41% -0.003 -0.0473)
OKLCHoklch(21.41% 0.047 266.4)
XYZxyz(1.0366, 0.9600, 2.8194)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F182F #2F260F
analogous
#0F282F #0F182F #160F2F
triadic
#0F182F #2F0F18 #182F0F
tetradic
#0F182F #2F0F28 #2F260F #0F2F16
square
#0F182F #2F0F28 #2F260F #0F2F16
split-complementary
#0F182F #2F160F #282F0F
monochromatic
#070C17 #070C17 #0F182F #1E305D #2D478C

Accessibility & contrast

On white

17.62
#0F182F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0F182F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F182F
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F182F#FFFFFF#000000##FFFFFF
##0F182F1.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#0A172F
Tritanopia (blue-blind)
#011D21
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0f182f;
/* rgb */ color: rgb(15, 24, 47);
/* oklch */ color: oklch(21.4% 0.047 266.4);
Tailwind
colors: {
  custom: {
    50: '#505467',
    500: '#0f182f',
    950: '#000000',
  },
}
SCSS
$custom: #0f182f;
$custom-light: #505467;
$custom-dark: #000000;
JSON
{
  "hex": "#0f182f",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 47
  },
  "hsl": {
    "h": 223.125,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21412,
    "c": 0.04739,
    "h": 266.4
  },
  "luminance": 0.0096
}

Semantic roles & 50–950 ramp

primary
#0F182F
secondary
#695931
accent
#B34DDB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0F182F

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

Preview Lab → · Contrast checker → · Palette generator →

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