#0F155F#0F155F

#0F155F is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.6% C 0.128 H 269.9°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#0F155F
RGBrgb(15, 21, 95)
HSLhsl(236, 73%, 22%)
HSVhsv(236, 84%, 37%)
CMYKcmyk(84.2%, 77.9%, 0%, 62.7%)
CIE-LABlab(12.38, 26.98, -44.15)
CIE-LCHlch(12.38, 51.74, 301.43°)
OKLaboklab(25.59% -0.0002 -0.1279)
OKLCHoklch(25.59% 0.128 269.9)
XYZxyz(2.5300, 1.4638, 10.9735)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F155F #5F590F
analogous
#0F3D5F #0F155F #310F5F
triadic
#0F155F #5F0F15 #155F0F
tetradic
#0F155F #5F0F3D #5F590F #0F5F31
square
#0F155F #5F0F3D #5F590F #0F5F31
split-complementary
#0F155F #5F310F #3D5F0F
monochromatic
#04061A #07092A #0F155F #172194 #202CC9

Accessibility & contrast

On white

16.24
#0F155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0F155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F155F
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F155F#FFFFFF#000000##FFFFFF
##0F155F1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001C5E
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f155f;
/* rgb */ color: rgb(15, 21, 95);
/* oklch */ color: oklch(25.6% 0.128 269.9);
Tailwind
colors: {
  custom: {
    50: '#5e538d',
    500: '#0f155f',
    950: '#000000',
  },
}
SCSS
$custom: #0f155f;
$custom-light: #5e538d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f155f",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 235.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25585,
    "c": 0.12788,
    "h": 269.9
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#0F155F
secondary
#989132
accent
#E238EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F155F

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

Preview Lab → · Contrast checker → · Palette generator →

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