#0F173F#0F173F

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

Color values

HEX#0F173F
RGBrgb(15, 23, 63)
HSLhsl(230, 62%, 15%)
HSVhsv(230, 76%, 25%)
CMYKcmyk(76.2%, 63.5%, 0%, 75.3%)
CIE-LABlab(9.59, 12.29, -26.71)
CIE-LCHlch(9.59, 29.40, 294.71°)
OKLaboklab(22.53% 0.0007 -0.0768)
OKLCHoklch(22.53% 0.077 270.5)
XYZxyz(1.4003, 1.0731, 4.8350)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F173F #3F370F
analogous
#0F2F3F #0F173F #1F0F3F
triadic
#0F173F #3F0F17 #173F0F
tetradic
#0F173F #3F0F2F #3F370F #0F3F1F
square
#0F173F #3F0F2F #3F370F #0F3F1F
split-complementary
#0F173F #3F1F0F #2F3F0F
monochromatic
#060919 #060919 #0F173F #1B2970 #273BA2

Accessibility & contrast

On white

17.29
#0F173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F173F
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F173F#FFFFFF#000000##FFFFFF
##0F173F1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f173f;
/* rgb */ color: rgb(15, 23, 63);
/* oklch */ color: oklch(22.5% 0.077 270.5);
Tailwind
colors: {
  custom: {
    50: '#545374',
    500: '#0f173f',
    950: '#000000',
  },
}
SCSS
$custom: #0f173f;
$custom-light: #545374;
$custom-dark: #000000;
JSON
{
  "hex": "#0f173f",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 230,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22526,
    "c": 0.07684,
    "h": 270.5
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#0F173F
secondary
#796D30
accent
#CA43E5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F173F

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

Preview Lab → · Contrast checker → · Palette generator →

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