#0F174F#0F174F

#0F174F is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.102 H 270.3°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#0F174F
RGBrgb(15, 23, 79)
HSLhsl(233, 68%, 18%)
HSVhsv(233, 81%, 31%)
CMYKcmyk(81%, 70.9%, 0%, 69%)
CIE-LABlab(11.13, 19.11, -35.37)
CIE-LCHlch(11.13, 40.20, 298.39°)
OKLaboklab(24.15% 0.0005 -0.1022)
OKLCHoklch(24.15% 0.102 270.3)
XYZxyz(1.9142, 1.2787, 7.5415)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F174F #4F470F
analogous
#0F374F #0F174F #270F4F
triadic
#0F174F #4F0F17 #174F0F
tetradic
#0F174F #4F0F37 #4F470F #0F4F27
square
#0F174F #4F0F37 #4F470F #0F4F27
split-complementary
#0F174F #4F270F #374F0F
monochromatic
#05071A #05081C #0F174F #192682 #2335B6

Accessibility & contrast

On white

16.72
#0F174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#0F174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F174F
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F174F#FFFFFF#000000##FFFFFF
##0F174F1.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#001B4E
Tritanopia (blue-blind)
#002630
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0f174f;
/* rgb */ color: rgb(15, 23, 79);
/* oklch */ color: oklch(24.1% 0.102 270.3);
Tailwind
colors: {
  custom: {
    50: '#595381',
    500: '#0f174f',
    950: '#000000',
  },
}
SCSS
$custom: #0f174f;
$custom-light: #595381;
$custom-dark: #000000;
JSON
{
  "hex": "#0f174f",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 232.5,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24146,
    "c": 0.10225,
    "h": 270.3
  },
  "luminance": 0.01279
}

Semantic roles & 50–950 ramp

primary
#0F174F
secondary
#897E31
accent
#D53DEB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F174F

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

Preview Lab → · Contrast checker → · Palette generator →

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