#0F174E#0F174E

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

Color values

HEX#0F174E
RGBrgb(15, 23, 78)
HSLhsl(232, 68%, 18%)
HSVhsv(232, 81%, 31%)
CMYKcmyk(80.8%, 70.5%, 0%, 69.4%)
CIE-LABlab(11.02, 18.70, -34.85)
CIE-LCHlch(11.02, 39.55, 298.22°)
OKLaboklab(24.04% 0.0005 -0.1007)
OKLCHoklch(24.04% 0.101 270.3)
XYZxyz(1.8781, 1.2642, 7.3513)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F174E #4E460F
analogous
#0F364E #0F174E #260F4E
triadic
#0F174E #4E0F17 #174E0F
tetradic
#0F174E #4E0F36 #4E460F #0F4E26
square
#0F174E #4E0F36 #4E460F #0F4E26
split-complementary
#0F174E #4E260F #364E0F
monochromatic
#05081A #05081B #0F174E #192681 #2335B5

Accessibility & contrast

On white

16.76
#0F174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F174E
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F174E#FFFFFF#000000##FFFFFF
##0F174E1.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0f174e;
/* rgb */ color: rgb(15, 23, 78);
/* oklch */ color: oklch(24.0% 0.101 270.3);
Tailwind
colors: {
  custom: {
    50: '#595380',
    500: '#0f174e',
    950: '#000000',
  },
}
SCSS
$custom: #0f174e;
$custom-light: #595380;
$custom-dark: #000000;
JSON
{
  "hex": "#0f174e",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 232.381,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24039,
    "c": 0.10073,
    "h": 270.3
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#0F174E
secondary
#887D31
accent
#D53DEB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F174E

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

Preview Lab → · Contrast checker → · Palette generator →

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