#0F186A#0F186A

#0F186A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.4% C 0.140 H 268.7°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#0F186A
RGBrgb(15, 24, 106)
HSLhsl(234, 75%, 24%)
HSVhsv(234, 86%, 42%)
CMYKcmyk(85.8%, 77.4%, 0%, 58.4%)
CIE-LABlab(14.37, 29.25, -48.13)
CIE-LCHlch(14.37, 56.32, 301.29°)
OKLaboklab(27.4% -0.0031 -0.1395)
OKLCHoklch(27.4% 0.14 268.7)
XYZxyz(3.1243, 1.7951, 13.8147)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F186A #6A610F
analogous
#0F456A #0F186A #330F6A
triadic
#0F186A #6A0F18 #186A0F
tetradic
#0F186A #6A0F45 #6A610F #0F6A33
square
#0F186A #6A0F45 #6A610F #0F6A33
split-complementary
#0F186A #6A330F #456A0F
monochromatic
#04061B #070C34 #0F186A #1724A0 #1E30D5

Accessibility & contrast

On white

15.45
#0F186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0F186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F186A
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F186A#FFFFFF#000000##FFFFFF
##0F186A1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002069
Tritanopia (blue-blind)
#00303F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f186a;
/* rgb */ color: rgb(15, 24, 106);
/* oklch */ color: oklch(27.4% 0.140 268.7);
Tailwind
colors: {
  custom: {
    50: '#615596',
    500: '#0f186a',
    950: '#000000',
  },
}
SCSS
$custom: #0f186a;
$custom-light: #615596;
$custom-dark: #000000;
JSON
{
  "hex": "#0f186a",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 234.066,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27395,
    "c": 0.1395,
    "h": 268.7
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#0F186A
secondary
#A29732
accent
#DF36F2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #0F186A

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

Preview Lab → · Contrast checker → · Palette generator →

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