#0F155D#0F155D

#0F155D is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.3% C 0.125 H 270.0°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#0F155D
RGBrgb(15, 21, 93)
HSLhsl(235, 72%, 21%)
HSVhsv(235, 84%, 36%)
CMYKcmyk(83.9%, 77.4%, 0%, 63.5%)
CIE-LABlab(12.14, 26.20, -43.20)
CIE-LCHlch(12.14, 50.52, 301.24°)
OKLaboklab(25.35% 0.0001 -0.1251)
OKLCHoklch(25.35% 0.125 270)
XYZxyz(2.4403, 1.4279, 10.5008)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F155D #5D570F
analogous
#0F3C5D #0F155D #300F5D
triadic
#0F155D #5D0F15 #155D0F
tetradic
#0F155D #5D0F3C #5D570F #0F5D30
square
#0F155D #5D0F3C #5D570F #0F5D30
split-complementary
#0F155D #5D300F #3C5D0F
monochromatic
#04061A #060928 #0F155D #172192 #202DC6

Accessibility & contrast

On white

16.33
#0F155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F155D
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F155D#FFFFFF#000000##FFFFFF
##0F155D1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001C5C
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f155d;
/* rgb */ color: rgb(15, 21, 93);
/* oklch */ color: oklch(25.3% 0.125 270.0);
Tailwind
colors: {
  custom: {
    50: '#5e538c',
    500: '#0f155d',
    950: '#000000',
  },
}
SCSS
$custom: #0f155d;
$custom-light: #5e538c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f155d",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 235.385,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25348,
    "c": 0.1251,
    "h": 270
  },
  "luminance": 0.01428
}

Semantic roles & 50–950 ramp

primary
#0F155D
secondary
#968F31
accent
#E139EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F155D

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

Preview Lab → · Contrast checker → · Palette generator →

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