#0F175F#0F175F

#0F175F is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.126 H 269.5°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#0F175F
RGBrgb(15, 23, 95)
HSLhsl(234, 73%, 22%)
HSVhsv(234, 84%, 37%)
CMYKcmyk(84.2%, 75.8%, 0%, 62.7%)
CIE-LABlab(12.86, 25.63, -43.35)
CIE-LCHlch(12.86, 50.36, 300.60°)
OKLaboklab(25.93% -0.0011 -0.1255)
OKLCHoklch(25.93% 0.126 269.5)
XYZxyz(2.5682, 1.5403, 10.9862)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F175F #5F570F
analogous
#0F3F5F #0F175F #2F0F5F
triadic
#0F175F #5F0F17 #175F0F
tetradic
#0F175F #5F0F3F #5F570F #0F5F2F
square
#0F175F #5F0F3F #5F570F #0F5F2F
split-complementary
#0F175F #5F2F0F #3F5F0F
monochromatic
#04061A #070A2A #0F175F #172494 #2031C9

Accessibility & contrast

On white

16.05
#0F175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0F175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F175F
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F175F#FFFFFF#000000##FFFFFF
##0F175F1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#001D5E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f175f;
/* rgb */ color: rgb(15, 23, 95);
/* oklch */ color: oklch(25.9% 0.126 269.5);
Tailwind
colors: {
  custom: {
    50: '#5e548d',
    500: '#0f175f',
    950: '#000000',
  },
}
SCSS
$custom: #0f175f;
$custom-light: #5e548d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f175f",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 234,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25933,
    "c": 0.12556,
    "h": 269.5
  },
  "luminance": 0.01541
}

Semantic roles & 50–950 ramp

primary
#0F175F
secondary
#988E32
accent
#DD38EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F175F

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

Preview Lab → · Contrast checker → · Palette generator →

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