#0F1152#0F1152

#0F1152 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.114 H 272.0°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#0F1152
RGBrgb(15, 17, 82)
HSLhsl(238, 69%, 19%)
HSVhsv(238, 82%, 32%)
CMYKcmyk(81.7%, 79.3%, 0%, 67.8%)
CIE-LABlab(9.89, 24.59, -39.46)
CIE-LCHlch(9.89, 46.50, 301.93°)
OKLaboklab(23.35% 0.0039 -0.1142)
OKLCHoklch(23.35% 0.114 272)
XYZxyz(1.9199, 1.1114, 8.0944)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1152 #52500F
analogous
#0F3352 #0F1152 #2F0F52
triadic
#0F1152 #520F11 #11520F
tetradic
#0F1152 #520F33 #52500F #0F522F
square
#0F1152 #520F33 #52500F #0F522F
split-complementary
#0F1152 #522F0F #33520F
monochromatic
#05051A #06061E #0F1152 #181C86 #2226B9

Accessibility & contrast

On white

17.18
#0F1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0F1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1152
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1152#FFFFFF#000000##FFFFFF
##0F11521.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f1152;
/* rgb */ color: rgb(15, 17, 82);
/* oklch */ color: oklch(23.4% 0.114 272.0);
Tailwind
colors: {
  custom: {
    50: '#5b4f83',
    500: '#0f1152',
    950: '#000000',
  },
}
SCSS
$custom: #0f1152;
$custom-light: #5b4f83;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1152",
  "rgb": {
    "r": 15,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 238.209,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2335,
    "c": 0.11428,
    "h": 272
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#0F1152
secondary
#8C8931
accent
#E73CEC
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0F1152

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

Preview Lab → · Contrast checker → · Palette generator →

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