#0F174B#0F174B

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

Color values

HEX#0F174B
RGBrgb(15, 23, 75)
HSLhsl(232, 67%, 18%)
HSVhsv(232, 80%, 29%)
CMYKcmyk(80%, 69.3%, 0%, 70.6%)
CIE-LABlab(10.72, 17.43, -33.27)
CIE-LCHlch(10.72, 37.56, 297.65°)
OKLaboklab(23.72% 0.0007 -0.0961)
OKLCHoklch(23.72% 0.096 270.4)
XYZxyz(1.7730, 1.2222, 6.7977)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F174B #4B430F
analogous
#0F354B #0F174B #250F4B
triadic
#0F174B #4B0F17 #174B0F
tetradic
#0F174B #4B0F35 #4B430F #0F4B25
square
#0F174B #4B0F35 #4B430F #0F4B25
split-complementary
#0F174B #4B250F #354B0F
monochromatic
#05081A #05081A #0F174B #19277E #2336B1

Accessibility & contrast

On white

16.88
#0F174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0F174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F174B
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F174B#FFFFFF#000000##FFFFFF
##0F174B1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001A4A
Tritanopia (blue-blind)
#00242E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0f174b;
/* rgb */ color: rgb(15, 23, 75);
/* oklch */ color: oklch(23.7% 0.096 270.4);
Tailwind
colors: {
  custom: {
    50: '#58537e',
    500: '#0f174b',
    950: '#000000',
  },
}
SCSS
$custom: #0f174b;
$custom-light: #58537e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f174b",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 232,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23723,
    "c": 0.09611,
    "h": 270.4
  },
  "luminance": 0.01222
}

Semantic roles & 50–950 ramp

primary
#0F174B
secondary
#857A30
accent
#D33EEA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F174B

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

Preview Lab → · Contrast checker → · Palette generator →

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