#0F1252#0F1252

#0F1252 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.5% C 0.113 H 271.7°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#0F1252
RGBrgb(15, 18, 82)
HSLhsl(237, 69%, 19%)
HSVhsv(237, 82%, 32%)
CMYKcmyk(81.7%, 78%, 0%, 67.8%)
CIE-LABlab(10.13, 23.91, -39.06)
CIE-LCHlch(10.13, 45.80, 301.47°)
OKLaboklab(23.53% 0.0034 -0.113)
OKLCHoklch(23.53% 0.113 271.7)
XYZxyz(1.9358, 1.1432, 8.0996)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1252 #524F0F
analogous
#0F3452 #0F1252 #2E0F52
triadic
#0F1252 #520F12 #12520F
tetradic
#0F1252 #520F34 #524F0F #0F522E
square
#0F1252 #520F34 #524F0F #0F522E
split-complementary
#0F1252 #522E0F #34520F
monochromatic
#05061A #06071E #0F1252 #181D86 #2229B9

Accessibility & contrast

On white

17.09
#0F1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0F1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1252
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1252#FFFFFF#000000##FFFFFF
##0F12521.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001851
Tritanopia (blue-blind)
#002430
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0f1252;
/* rgb */ color: rgb(15, 18, 82);
/* oklch */ color: oklch(23.5% 0.113 271.7);
Tailwind
colors: {
  custom: {
    50: '#5b5083',
    500: '#0f1252',
    950: '#000000',
  },
}
SCSS
$custom: #0f1252;
$custom-light: #5b5083;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1252",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 237.313,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23525,
    "c": 0.1131,
    "h": 271.7
  },
  "luminance": 0.01143
}

Semantic roles & 50–950 ramp

primary
#0F1252
secondary
#8C8831
accent
#E43CEC
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0F1252

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

Preview Lab → · Contrast checker → · Palette generator →

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