#0F1248#0F1248

#0F1248 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.098 H 272.8°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#0F1248
RGBrgb(15, 18, 72)
HSLhsl(237, 66%, 17%)
HSVhsv(237, 79%, 28%)
CMYKcmyk(79.2%, 75%, 0%, 71.8%)
CIE-LABlab(9.01, 19.89, -33.99)
CIE-LCHlch(9.01, 39.38, 300.33°)
OKLaboklab(22.38% 0.0048 -0.0982)
OKLCHoklch(22.38% 0.098 272.8)
XYZxyz(1.5826, 1.0019, 6.2396)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1248 #48450F
analogous
#0F2F48 #0F1248 #290F48
triadic
#0F1248 #480F12 #12480F
tetradic
#0F1248 #480F2F #48450F #0F4829
square
#0F1248 #480F2F #48450F #0F4829
split-complementary
#0F1248 #48290F #2F480F
monochromatic
#050619 #050619 #0F1248 #1A1F7B #242BAD

Accessibility & contrast

On white

17.49
#0F1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0F1248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1248
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1248#FFFFFF#000000##FFFFFF
##0F12481.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001747
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0f1248;
/* rgb */ color: rgb(15, 18, 72);
/* oklch */ color: oklch(22.4% 0.098 272.8);
Tailwind
colors: {
  custom: {
    50: '#58507c',
    500: '#0f1248',
    950: '#000000',
  },
}
SCSS
$custom: #0f1248;
$custom-light: #58507c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1248",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 236.842,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22375,
    "c": 0.09837,
    "h": 272.8
  },
  "luminance": 0.01002
}

Semantic roles & 50–950 ramp

primary
#0F1248
secondary
#827E30
accent
#E03FE8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #0F1248

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

Preview Lab → · Contrast checker → · Palette generator →

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