#0F173A#0F173A

#0F173A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.068 H 270.2°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#0F173A
RGBrgb(15, 23, 58)
HSLhsl(229, 59%, 14%)
HSVhsv(229, 74%, 23%)
CMYKcmyk(74.1%, 60.3%, 0%, 77.3%)
CIE-LABlab(9.15, 10.13, -23.84)
CIE-LCHlch(9.15, 25.90, 293.01°)
OKLaboklab(22.07% 0.0003 -0.0684)
OKLCHoklch(22.07% 0.068 270.2)
XYZxyz(1.2669, 1.0197, 4.1322)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F173A #3A320F
analogous
#0F2D3A #0F173A #1D0F3A
triadic
#0F173A #3A0F17 #173A0F
tetradic
#0F173A #3A0F2D #3A320F #0F3A1D
square
#0F173A #3A0F2D #3A320F #0F3A1D
split-complementary
#0F173A #3A1D0F #2D3A0F
monochromatic
#060A18 #060A18 #0F173A #1C2A6B #283E9B

Accessibility & contrast

On white

17.44
#0F173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0F173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F173A
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F173A#FFFFFF#000000##FFFFFF
##0F173A1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3B
Deuteranopia (green-blind)
#001839
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f173a;
/* rgb */ color: rgb(15, 23, 58);
/* oklch */ color: oklch(22.1% 0.068 270.2);
Tailwind
colors: {
  custom: {
    50: '#535370',
    500: '#0f173a',
    950: '#000000',
  },
}
SCSS
$custom: #0f173a;
$custom-light: #535370;
$custom-dark: #000000;
JSON
{
  "hex": "#0f173a",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 228.837,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22065,
    "c": 0.0684,
    "h": 270.2
  },
  "luminance": 0.0102
}

Semantic roles & 50–950 ramp

primary
#0F173A
secondary
#746830
accent
#C546E2
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #0F173A

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

Preview Lab → · Contrast checker → · Palette generator →

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