#0F175D#0F175D

#0F175D is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.7% C 0.123 H 269.6°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#0F175D
RGBrgb(15, 23, 93)
HSLhsl(234, 72%, 21%)
HSVhsv(234, 84%, 36%)
CMYKcmyk(83.9%, 75.3%, 0%, 63.5%)
CIE-LABlab(12.64, 24.84, -42.38)
CIE-LCHlch(12.64, 49.12, 300.37°)
OKLaboklab(25.7% -0.0009 -0.1227)
OKLCHoklch(25.7% 0.123 269.6)
XYZxyz(2.4785, 1.5044, 10.5136)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F175D #5D550F
analogous
#0F3E5D #0F175D #2E0F5D
triadic
#0F175D #5D0F17 #175D0F
tetradic
#0F175D #5D0F3E #5D550F #0F5D2E
square
#0F175D #5D0F3E #5D550F #0F5D2E
split-complementary
#0F175D #5D2E0F #3E5D0F
monochromatic
#04071A #060A28 #0F175D #172492 #2031C6

Accessibility & contrast

On white

16.14
#0F175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0F175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F175D
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F175D#FFFFFF#000000##FFFFFF
##0F175D1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#001D5C
Tritanopia (blue-blind)
#002B38
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f175d;
/* rgb */ color: rgb(15, 23, 93);
/* oklch */ color: oklch(25.7% 0.123 269.6);
Tailwind
colors: {
  custom: {
    50: '#5d548c',
    500: '#0f175d',
    950: '#000000',
  },
}
SCSS
$custom: #0f175d;
$custom-light: #5d548c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f175d",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 233.846,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25702,
    "c": 0.12274,
    "h": 269.6
  },
  "luminance": 0.01505
}

Semantic roles & 50–950 ramp

primary
#0F175D
secondary
#968C31
accent
#DC39EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F175D

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

Preview Lab → · Contrast checker → · Palette generator →

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