#0F155E#0F155E

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

Color values

HEX#0F155E
RGBrgb(15, 21, 94)
HSLhsl(235, 72%, 21%)
HSVhsv(235, 84%, 37%)
CMYKcmyk(84%, 77.7%, 0%, 63.1%)
CIE-LABlab(12.26, 26.59, -43.67)
CIE-LCHlch(12.26, 51.13, 301.34°)
OKLaboklab(25.47% -0.0001 -0.1265)
OKLCHoklch(25.47% 0.126 270)
XYZxyz(2.4849, 1.4458, 10.7356)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F155E #5E580F
analogous
#0F3D5E #0F155E #310F5E
triadic
#0F155E #5E0F15 #155E0F
tetradic
#0F155E #5E0F3D #5E580F #0F5E31
square
#0F155E #5E0F3D #5E580F #0F5E31
split-complementary
#0F155E #5E310F #3D5E0F
monochromatic
#04061A #070929 #0F155E #172193 #202DC8

Accessibility & contrast

On white

16.29
#0F155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F155E
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F155E#FFFFFF#000000##FFFFFF
##0F155E1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f155e;
/* rgb */ color: rgb(15, 21, 94);
/* oklch */ color: oklch(25.5% 0.126 270.0);
Tailwind
colors: {
  custom: {
    50: '#5e538d',
    500: '#0f155e',
    950: '#000000',
  },
}
SCSS
$custom: #0f155e;
$custom-light: #5e538d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f155e",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 235.443,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25466,
    "c": 0.12649,
    "h": 270
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#0F155E
secondary
#979031
accent
#E139EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F155E

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

Preview Lab → · Contrast checker → · Palette generator →

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