#0F174C#0F174C

#0F174C is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.098 H 270.4°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#0F174C
RGBrgb(15, 23, 76)
HSLhsl(232, 67%, 18%)
HSVhsv(232, 80%, 30%)
CMYKcmyk(80.3%, 69.7%, 0%, 70.2%)
CIE-LABlab(10.82, 17.85, -33.80)
CIE-LCHlch(10.82, 38.23, 297.85°)
OKLaboklab(23.83% 0.0006 -0.0977)
OKLCHoklch(23.83% 0.098 270.4)
XYZxyz(1.8075, 1.2360, 6.9794)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F174C #4C440F
analogous
#0F354C #0F174C #250F4C
triadic
#0F174C #4C0F17 #174C0F
tetradic
#0F174C #4C0F35 #4C440F #0F4C25
square
#0F174C #4C0F35 #4C440F #0F4C25
split-complementary
#0F174C #4C250F #354C0F
monochromatic
#05081A #05081A #0F174C #19267F #2336B2

Accessibility & contrast

On white

16.84
#0F174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0F174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F174C
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F174C#FFFFFF#000000##FFFFFF
##0F174C1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001A4B
Tritanopia (blue-blind)
#00252F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0f174c;
/* rgb */ color: rgb(15, 23, 76);
/* oklch */ color: oklch(23.8% 0.098 270.4);
Tailwind
colors: {
  custom: {
    50: '#58537f',
    500: '#0f174c',
    950: '#000000',
  },
}
SCSS
$custom: #0f174c;
$custom-light: #58537f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f174c",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 232.131,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23828,
    "c": 0.09766,
    "h": 270.4
  },
  "luminance": 0.01236
}

Semantic roles & 50–950 ramp

primary
#0F174C
secondary
#867B31
accent
#D33EEA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F174C

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

Preview Lab → · Contrast checker → · Palette generator →

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