#0F1557#0F1557

#0F1557 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.6% C 0.117 H 270.5°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#0F1557
RGBrgb(15, 21, 87)
HSLhsl(235, 71%, 20%)
HSVhsv(235, 83%, 34%)
CMYKcmyk(82.8%, 75.9%, 0%, 65.9%)
CIE-LABlab(11.45, 23.83, -40.28)
CIE-LCHlch(11.45, 46.80, 300.60°)
OKLaboklab(24.65% 0.001 -0.1166)
OKLCHoklch(24.65% 0.117 270.5)
XYZxyz(2.1849, 1.3258, 9.1557)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1557 #57510F
analogous
#0F3957 #0F1557 #2D0F57
triadic
#0F1557 #570F15 #15570F
tetradic
#0F1557 #570F39 #57510F #0F572D
square
#0F1557 #570F39 #57510F #0F572D
split-complementary
#0F1557 #572D0F #39570F
monochromatic
#05061A #060823 #0F1557 #18228B #212EBF

Accessibility & contrast

On white

16.60
#0F1557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#0F1557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1557
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1557#FFFFFF#000000##FFFFFF
##0F15571.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001B56
Tritanopia (blue-blind)
#002734
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0f1557;
/* rgb */ color: rgb(15, 21, 87);
/* oklch */ color: oklch(24.6% 0.117 270.5);
Tailwind
colors: {
  custom: {
    50: '#5c5287',
    500: '#0f1557',
    950: '#000000',
  },
}
SCSS
$custom: #0f1557;
$custom-light: #5c5287;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1557",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 235,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.24647,
    "c": 0.11663,
    "h": 270.5
  },
  "luminance": 0.01326
}

Semantic roles & 50–950 ramp

primary
#0F1557
secondary
#918931
accent
#DE3AED
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #0F1557

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

Preview Lab → · Contrast checker → · Palette generator →

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