#0F173B#0F173B

#0F173B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.070 H 270.3°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#0F173B
RGBrgb(15, 23, 59)
HSLhsl(229, 59%, 15%)
HSVhsv(229, 75%, 23%)
CMYKcmyk(74.6%, 61%, 0%, 76.9%)
CIE-LABlab(9.24, 10.56, -24.42)
CIE-LCHlch(9.24, 26.60, 293.38°)
OKLaboklab(22.16% 0.0004 -0.0701)
OKLCHoklch(22.16% 0.07 270.3)
XYZxyz(1.2925, 1.0300, 4.2675)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F173B #3B330F
analogous
#0F2D3B #0F173B #1D0F3B
triadic
#0F173B #3B0F17 #173B0F
tetradic
#0F173B #3B0F2D #3B330F #0F3B1D
square
#0F173B #3B0F2D #3B330F #0F3B1D
split-complementary
#0F173B #3B1D0F #2D3B0F
monochromatic
#060A18 #060A18 #0F173B #1B2A6C #283D9D

Accessibility & contrast

On white

17.41
#0F173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0F173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F173B
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F173B#FFFFFF#000000##FFFFFF
##0F173B1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3C
Deuteranopia (green-blind)
#00183A
Tritanopia (blue-blind)
#001F26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f173b;
/* rgb */ color: rgb(15, 23, 59);
/* oklch */ color: oklch(22.2% 0.070 270.3);
Tailwind
colors: {
  custom: {
    50: '#535371',
    500: '#0f173b',
    950: '#000000',
  },
}
SCSS
$custom: #0f173b;
$custom-light: #535371;
$custom-dark: #000000;
JSON
{
  "hex": "#0f173b",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 229.091,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22155,
    "c": 0.0701,
    "h": 270.3
  },
  "luminance": 0.0103
}

Semantic roles & 50–950 ramp

primary
#0F173B
secondary
#756930
accent
#C645E3
background
#F4F4F6
surface
#E8E7EC
border
#C4C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #0F173B

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

Preview Lab → · Contrast checker → · Palette generator →

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