#0F155C#0F155C

#0F155C is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.2% C 0.124 H 270.1°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#0F155C
RGBrgb(15, 21, 92)
HSLhsl(235, 72%, 21%)
HSVhsv(235, 84%, 36%)
CMYKcmyk(83.7%, 77.2%, 0%, 63.9%)
CIE-LABlab(12.03, 25.81, -42.72)
CIE-LCHlch(12.03, 49.91, 301.14°)
OKLaboklab(25.23% 0.0003 -0.1237)
OKLCHoklch(25.23% 0.124 270.1)
XYZxyz(2.3963, 1.4103, 10.2691)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F155C #5C560F
analogous
#0F3B5C #0F155C #2F0F5C
triadic
#0F155C #5C0F15 #155C0F
tetradic
#0F155C #5C0F3B #5C560F #0F5C2F
square
#0F155C #5C0F3B #5C560F #0F5C2F
split-complementary
#0F155C #5C2F0F #3B5C0F
monochromatic
#04061A #060927 #0F155C #182191 #202DC5

Accessibility & contrast

On white

16.38
#0F155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0F155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F155C
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F155C#FFFFFF#000000##FFFFFF
##0F155C1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001C5B
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f155c;
/* rgb */ color: rgb(15, 21, 92);
/* oklch */ color: oklch(25.2% 0.124 270.1);
Tailwind
colors: {
  custom: {
    50: '#5d538b',
    500: '#0f155c',
    950: '#000000',
  },
}
SCSS
$custom: #0f155c;
$custom-light: #5d538b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f155c",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 235.325,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2523,
    "c": 0.12371,
    "h": 270.1
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#0F155C
secondary
#958E31
accent
#E139EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F155C

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

Preview Lab → · Contrast checker → · Palette generator →

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