#0F173D#0F173D

#0F173D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.3% C 0.073 H 270.4°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#0F173D
RGBrgb(15, 23, 61)
HSLhsl(230, 61%, 15%)
HSVhsv(230, 75%, 24%)
CMYKcmyk(75.4%, 62.3%, 0%, 76.1%)
CIE-LABlab(9.41, 11.42, -25.57)
CIE-LCHlch(9.41, 28.01, 294.07°)
OKLaboklab(22.34% 0.0005 -0.0735)
OKLCHoklch(22.34% 0.073 270.4)
XYZxyz(1.3454, 1.0511, 4.5460)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F173D #3D350F
analogous
#0F2E3D #0F173D #1E0F3D
triadic
#0F173D #3D0F17 #173D0F
tetradic
#0F173D #3D0F2E #3D350F #0F3D1E
square
#0F173D #3D0F2E #3D350F #0F3D1E
split-complementary
#0F173D #3D1E0F #2E3D0F
monochromatic
#060919 #060919 #0F173D #1B2A6E #273C9F

Accessibility & contrast

On white

17.35
#0F173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F173D
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F173D#FFFFFF#000000##FFFFFF
##0F173D1.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011C3E
Deuteranopia (green-blind)
#00183C
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f173d;
/* rgb */ color: rgb(15, 23, 61);
/* oklch */ color: oklch(22.3% 0.073 270.4);
Tailwind
colors: {
  custom: {
    50: '#545373',
    500: '#0f173d',
    950: '#000000',
  },
}
SCSS
$custom: #0f173d;
$custom-light: #545373;
$custom-dark: #000000;
JSON
{
  "hex": "#0f173d",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 229.565,
    "s": 60.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22339,
    "c": 0.07349,
    "h": 270.4
  },
  "luminance": 0.01051
}

Semantic roles & 50–950 ramp

primary
#0F173D
secondary
#776B30
accent
#C844E4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F173D

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

Preview Lab → · Contrast checker → · Palette generator →

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