#0F185A#0F185A

#0F185A is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.117 H 269.5°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#0F185A
RGBrgb(15, 24, 90)
HSLhsl(233, 71%, 21%)
HSVhsv(233, 83%, 35%)
CMYKcmyk(83.3%, 73.3%, 0%, 64.7%)
CIE-LABlab(12.56, 22.93, -40.49)
CIE-LCHlch(12.56, 46.53, 299.53°)
OKLaboklab(25.55% -0.0011 -0.1172)
OKLCHoklch(25.55% 0.117 269.5)
XYZxyz(2.3685, 1.4927, 9.8342)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F185A #5A510F
analogous
#0F3D5A #0F185A #2B0F5A
triadic
#0F185A #5A0F18 #185A0F
tetradic
#0F185A #5A0F3D #5A510F #0F5A2B
square
#0F185A #5A0F3D #5A510F #0F5A2B
split-complementary
#0F185A #5A2B0F #3D5A0F
monochromatic
#04071A #060A26 #0F185A #18268E #2034C3

Accessibility & contrast

On white

16.17
#0F185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F185A
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F185A#FFFFFF#000000##FFFFFF
##0F185A1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#001D59
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f185a;
/* rgb */ color: rgb(15, 24, 90);
/* oklch */ color: oklch(25.5% 0.117 269.5);
Tailwind
colors: {
  custom: {
    50: '#5c5589',
    500: '#0f185a',
    950: '#000000',
  },
}
SCSS
$custom: #0f185a;
$custom-light: #5c5589;
$custom-dark: #000000;
JSON
{
  "hex": "#0f185a",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 232.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25549,
    "c": 0.11723,
    "h": 269.5
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#0F185A
secondary
#948831
accent
#D93AEE
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F185A

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

Preview Lab → · Contrast checker → · Palette generator →

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