#0F0F52#0F0F52

#0F0F52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.117 H 272.5°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#0F0F52
RGBrgb(15, 15, 82)
HSLhsl(240, 69%, 19%)
HSVhsv(240, 82%, 32%)
CMYKcmyk(81.7%, 81.7%, 0%, 67.8%)
CIE-LABlab(9.42, 25.90, -40.24)
CIE-LCHlch(9.42, 47.85, 302.77°)
OKLaboklab(23.02% 0.005 -0.1164)
OKLCHoklch(23.02% 0.117 272.5)
XYZxyz(1.8903, 1.0522, 8.0845)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F52 #52520F
analogous
#0F3152 #0F0F52 #310F52
triadic
#0F0F52 #520F0F #0F520F
tetradic
#0F0F52 #520F31 #52520F #0F5231
square
#0F0F52 #520F31 #52520F #0F5231
split-complementary
#0F0F52 #52310F #31520F
monochromatic
#05051A #06061E #0F0F52 #181886 #2222B9

Accessibility & contrast

On white

17.35
#0F0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0F0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0F52
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F52#FFFFFF#000000##FFFFFF
##0F0F521.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E54
Deuteranopia (green-blind)
#001751
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f0f52;
/* rgb */ color: rgb(15, 15, 82);
/* oklch */ color: oklch(23.0% 0.117 272.5);
Tailwind
colors: {
  custom: {
    50: '#5b4e83',
    500: '#0f0f52',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f52;
$custom-light: #5b4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f52",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 240,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23017,
    "c": 0.11656,
    "h": 272.5
  },
  "luminance": 0.01052
}

Semantic roles & 50–950 ramp

primary
#0F0F52
secondary
#8C8C31
accent
#EC3CEC
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0F0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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