#0F173C#0F173C

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

Color values

HEX#0F173C
RGBrgb(15, 23, 60)
HSLhsl(229, 60%, 15%)
HSVhsv(229, 75%, 24%)
CMYKcmyk(75%, 61.7%, 0%, 76.5%)
CIE-LABlab(9.32, 10.99, -25.00)
CIE-LCHlch(9.32, 27.31, 293.73°)
OKLaboklab(22.25% 0.0005 -0.0718)
OKLCHoklch(22.25% 0.072 270.4)
XYZxyz(1.3187, 1.0405, 4.4054)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F173C #3C340F
analogous
#0F2E3C #0F173C #1D0F3C
triadic
#0F173C #3C0F17 #173C0F
tetradic
#0F173C #3C0F2E #3C340F #0F3C1D
square
#0F173C #3C0F2E #3C340F #0F3C1D
split-complementary
#0F173C #3C1D0F #2E3C0F
monochromatic
#060918 #060918 #0F173C #1B2A6D #273D9E

Accessibility & contrast

On white

17.38
#0F173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F173C
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F173C#FFFFFF#000000##FFFFFF
##0F173C1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3D
Deuteranopia (green-blind)
#00183B
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f173c;
/* rgb */ color: rgb(15, 23, 60);
/* oklch */ color: oklch(22.2% 0.072 270.4);
Tailwind
colors: {
  custom: {
    50: '#545372',
    500: '#0f173c',
    950: '#000000',
  },
}
SCSS
$custom: #0f173c;
$custom-light: #545372;
$custom-dark: #000000;
JSON
{
  "hex": "#0f173c",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 229.333,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22247,
    "c": 0.0718,
    "h": 270.4
  },
  "luminance": 0.01041
}

Semantic roles & 50–950 ramp

primary
#0F173C
secondary
#766A30
accent
#C745E3
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0F173C

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

Preview Lab → · Contrast checker → · Palette generator →

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