#0F175E#0F175E

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

Color values

HEX#0F175E
RGBrgb(15, 23, 94)
HSLhsl(234, 72%, 21%)
HSVhsv(234, 84%, 37%)
CMYKcmyk(84%, 75.5%, 0%, 63.1%)
CIE-LABlab(12.75, 25.24, -42.87)
CIE-LCHlch(12.75, 49.74, 300.49°)
OKLaboklab(25.82% -0.001 -0.1241)
OKLCHoklch(25.82% 0.124 269.5)
XYZxyz(2.5231, 1.5222, 10.7483)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F175E #5E560F
analogous
#0F3F5E #0F175E #2F0F5E
triadic
#0F175E #5E0F17 #175E0F
tetradic
#0F175E #5E0F3F #5E560F #0F5E2F
square
#0F175E #5E0F3F #5E560F #0F5E2F
split-complementary
#0F175E #5E2F0F #3F5E0F
monochromatic
#04061A #070A29 #0F175E #172493 #2031C8

Accessibility & contrast

On white

16.10
#0F175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F175E
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F175E#FFFFFF#000000##FFFFFF
##0F175E1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#001D5D
Tritanopia (blue-blind)
#002B38
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f175e;
/* rgb */ color: rgb(15, 23, 94);
/* oklch */ color: oklch(25.8% 0.124 269.5);
Tailwind
colors: {
  custom: {
    50: '#5e548d',
    500: '#0f175e',
    950: '#000000',
  },
}
SCSS
$custom: #0f175e;
$custom-light: #5e548d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f175e",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 233.924,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25818,
    "c": 0.12415,
    "h": 269.5
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#0F175E
secondary
#978D31
accent
#DD39EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F175E

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

Preview Lab → · Contrast checker → · Palette generator →

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