#0F173E#0F173E

#0F173E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.4% C 0.075 H 270.5°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#0F173E
RGBrgb(15, 23, 62)
HSLhsl(230, 61%, 15%)
HSVhsv(230, 76%, 24%)
CMYKcmyk(75.8%, 62.9%, 0%, 75.7%)
CIE-LABlab(9.50, 11.86, -26.14)
CIE-LCHlch(9.50, 28.71, 294.40°)
OKLaboklab(22.43% 0.0006 -0.0752)
OKLCHoklch(22.43% 0.075 270.5)
XYZxyz(1.3726, 1.0620, 4.6891)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F173E #3E360F
analogous
#0F2F3E #0F173E #1E0F3E
triadic
#0F173E #3E0F17 #173E0F
tetradic
#0F173E #3E0F2F #3E360F #0F3E1E
square
#0F173E #3E0F2F #3E360F #0F3E1E
split-complementary
#0F173E #3E1E0F #2F3E0F
monochromatic
#060919 #060919 #0F173E #1B296F #273CA1

Accessibility & contrast

On white

17.32
#0F173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F173E
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F173E#FFFFFF#000000##FFFFFF
##0F173E1.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D3F
Deuteranopia (green-blind)
#00183D
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f173e;
/* rgb */ color: rgb(15, 23, 62);
/* oklch */ color: oklch(22.4% 0.075 270.5);
Tailwind
colors: {
  custom: {
    50: '#545374',
    500: '#0f173e',
    950: '#000000',
  },
}
SCSS
$custom: #0f173e;
$custom-light: #545374;
$custom-dark: #000000;
JSON
{
  "hex": "#0f173e",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 229.787,
    "s": 61.039,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22432,
    "c": 0.07517,
    "h": 270.5
  },
  "luminance": 0.01062
}

Semantic roles & 50–950 ramp

primary
#0F173E
secondary
#786C30
accent
#C944E4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F173E

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

Preview Lab → · Contrast checker → · Palette generator →

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