#0F1551#0F1551

#0F1551 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.0% C 0.108 H 270.9°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#0F1551
RGBrgb(15, 21, 81)
HSLhsl(235, 69%, 19%)
HSVhsv(235, 81%, 32%)
CMYKcmyk(81.5%, 74.1%, 0%, 68.2%)
CIE-LABlab(10.79, 21.40, -37.29)
CIE-LCHlch(10.79, 43.00, 299.85°)
OKLaboklab(23.97% 0.0017 -0.1079)
OKLCHoklch(23.97% 0.108 270.9)
XYZxyz(1.9499, 1.2318, 7.9180)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1551 #514B0F
analogous
#0F3651 #0F1551 #2A0F51
triadic
#0F1551 #510F15 #15510F
tetradic
#0F1551 #510F36 #514B0F #0F512A
square
#0F1551 #510F36 #514B0F #0F512A
split-complementary
#0F1551 #512A0F #36510F
monochromatic
#05071A #05081D #0F1551 #192285 #2230B8

Accessibility & contrast

On white

16.85
#0F1551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0F1551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1551
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1551#FFFFFF#000000##FFFFFF
##0F15511.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#001A50
Tritanopia (blue-blind)
#002531
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0f1551;
/* rgb */ color: rgb(15, 21, 81);
/* oklch */ color: oklch(24.0% 0.108 270.9);
Tailwind
colors: {
  custom: {
    50: '#5a5283',
    500: '#0f1551',
    950: '#000000',
  },
}
SCSS
$custom: #0f1551;
$custom-light: #5a5283;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1551",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 81
  },
  "hsl": {
    "h": 234.545,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23966,
    "c": 0.1079,
    "h": 270.9
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#0F1551
secondary
#8B8331
accent
#DC3CEC
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F1551

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

Preview Lab → · Contrast checker → · Palette generator →

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