#0F176A#0F176A

#0F176A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.2% C 0.141 H 268.9°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#0F176A
RGBrgb(15, 23, 106)
HSLhsl(235, 75%, 24%)
HSVhsv(235, 86%, 42%)
CMYKcmyk(85.8%, 78.3%, 0%, 58.4%)
CIE-LABlab(14.14, 29.89, -48.51)
CIE-LCHlch(14.14, 56.98, 301.64°)
OKLaboklab(27.23% -0.0027 -0.1406)
OKLCHoklch(27.23% 0.141 268.9)
XYZxyz(3.1040, 1.7546, 13.8079)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F176A #6A620F
analogous
#0F446A #0F176A #340F6A
triadic
#0F176A #6A0F17 #176A0F
tetradic
#0F176A #6A0F44 #6A620F #0F6A34
square
#0F176A #6A0F44 #6A620F #0F6A34
split-complementary
#0F176A #6A340F #446A0F
monochromatic
#04061B #070B34 #0F176A #1723A0 #1E2ED5

Accessibility & contrast

On white

15.54
#0F176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0F176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F176A
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F176A#FFFFFF#000000##FFFFFF
##0F176A1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#001F69
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f176a;
/* rgb */ color: rgb(15, 23, 106);
/* oklch */ color: oklch(27.2% 0.141 268.9);
Tailwind
colors: {
  custom: {
    50: '#615596',
    500: '#0f176a',
    950: '#000000',
  },
}
SCSS
$custom: #0f176a;
$custom-light: #615596;
$custom-dark: #000000;
JSON
{
  "hex": "#0f176a",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 234.725,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27231,
    "c": 0.1406,
    "h": 268.9
  },
  "luminance": 0.01755
}

Semantic roles & 50–950 ramp

primary
#0F176A
secondary
#A29932
accent
#E136F2
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #0F176A

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

Preview Lab → · Contrast checker → · Palette generator →

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