#0F1851#0F1851

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

Color values

HEX#0F1851
RGBrgb(15, 24, 81)
HSLhsl(232, 69%, 19%)
HSVhsv(232, 81%, 32%)
CMYKcmyk(81.5%, 70.4%, 0%, 68.2%)
CIE-LABlab(11.61, 19.21, -35.94)
CIE-LCHlch(11.61, 40.75, 298.13°)
OKLaboklab(24.57% -0.0004 -0.1039)
OKLCHoklch(24.57% 0.104 269.8)
XYZxyz(2.0083, 1.3487, 7.9375)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1851 #51480F
analogous
#0F3951 #0F1851 #270F51
triadic
#0F1851 #510F18 #18510F
tetradic
#0F1851 #510F39 #51480F #0F5127
square
#0F1851 #510F39 #51480F #0F5127
split-complementary
#0F1851 #51270F #39510F
monochromatic
#05081A #05091D #0F1851 #192785 #2237B8

Accessibility & contrast

On white

16.54
#0F1851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1851
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1851#FFFFFF#000000##FFFFFF
##0F18511.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#001C50
Tritanopia (blue-blind)
#002732
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0f1851;
/* rgb */ color: rgb(15, 24, 81);
/* oklch */ color: oklch(24.6% 0.104 269.8);
Tailwind
colors: {
  custom: {
    50: '#5a5482',
    500: '#0f1851',
    950: '#000000',
  },
}
SCSS
$custom: #0f1851;
$custom-light: #5a5482;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1851",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 81
  },
  "hsl": {
    "h": 231.818,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24566,
    "c": 0.10392,
    "h": 269.8
  },
  "luminance": 0.01349
}

Semantic roles & 50–950 ramp

primary
#0F1851
secondary
#8B7F31
accent
#D43CEC
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F1851

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

Preview Lab → · Contrast checker → · Palette generator →

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