#0F185F#0F185F

#0F185F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.1% C 0.124 H 269.2°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#0F185F
RGBrgb(15, 24, 95)
HSLhsl(233, 73%, 22%)
HSVhsv(233, 84%, 37%)
CMYKcmyk(84.2%, 74.7%, 0%, 62.7%)
CIE-LABlab(13.11, 24.95, -42.93)
CIE-LCHlch(13.11, 49.65, 300.16°)
OKLaboklab(26.11% -0.0016 -0.1243)
OKLCHoklch(26.11% 0.124 269.2)
XYZxyz(2.5885, 1.5808, 10.9929)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F185F #5F560F
analogous
#0F405F #0F185F #2E0F5F
triadic
#0F185F #5F0F18 #185F0F
tetradic
#0F185F #5F0F40 #5F560F #0F5F2E
square
#0F185F #5F0F40 #5F560F #0F5F2E
split-complementary
#0F185F #5F2E0F #405F0F
monochromatic
#04071A #070B2A #0F185F #172594 #2033C9

Accessibility & contrast

On white

15.96
#0F185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0F185F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F185F
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F185F#FFFFFF#000000##FFFFFF
##0F185F1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f185f;
/* rgb */ color: rgb(15, 24, 95);
/* oklch */ color: oklch(26.1% 0.124 269.2);
Tailwind
colors: {
  custom: {
    50: '#5e558d',
    500: '#0f185f',
    950: '#000000',
  },
}
SCSS
$custom: #0f185f;
$custom-light: #5e558d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f185f",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 233.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26114,
    "c": 0.12436,
    "h": 269.2
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#0F185F
secondary
#988D32
accent
#DB38EF
background
#F5F4F8
surface
#EAE8F0
border
#C6C4CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F185F

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

Preview Lab → · Contrast checker → · Palette generator →

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