#0F1147#0F1147

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

Color values

HEX#0F1147
RGBrgb(15, 17, 71)
HSLhsl(238, 65%, 17%)
HSVhsv(238, 79%, 28%)
CMYKcmyk(78.9%, 76.1%, 0%, 72.2%)
CIE-LABlab(8.63, 20.21, -33.91)
CIE-LCHlch(8.63, 39.47, 300.79°)
OKLaboklab(22.07% 0.0057 -0.098)
OKLCHoklch(22.07% 0.098 273.3)
XYZxyz(1.5344, 0.9572, 6.0639)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1147 #47450F
analogous
#0F2D47 #0F1147 #290F47
triadic
#0F1147 #470F11 #11470F
tetradic
#0F1147 #470F2D #47450F #0F4729
square
#0F1147 #470F2D #47450F #0F4729
split-complementary
#0F1147 #47290F #2D470F
monochromatic
#050619 #050619 #0F1147 #1A1D7A #2429AC

Accessibility & contrast

On white

17.63
#0F1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0F1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1147
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1147#FFFFFF#000000##FFFFFF
##0F11471.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0f1147;
/* rgb */ color: rgb(15, 17, 71);
/* oklch */ color: oklch(22.1% 0.098 273.3);
Tailwind
colors: {
  custom: {
    50: '#574f7b',
    500: '#0f1147',
    950: '#000000',
  },
}
SCSS
$custom: #0f1147;
$custom-light: #574f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1147",
  "rgb": {
    "r": 15,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 237.857,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.22068,
    "c": 0.09819,
    "h": 273.3
  },
  "luminance": 0.00957
}

Semantic roles & 50–950 ramp

primary
#0F1147
secondary
#817F30
accent
#E240E8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #0F1147

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

Preview Lab → · Contrast checker → · Palette generator →

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