#0F0F51#0F0F51

#0F0F51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.115 H 272.6°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#0F0F51
RGBrgb(15, 15, 81)
HSLhsl(240, 69%, 19%)
HSVhsv(240, 81%, 32%)
CMYKcmyk(81.5%, 81.5%, 0%, 68.2%)
CIE-LABlab(9.30, 25.52, -39.75)
CIE-LCHlch(9.30, 47.24, 302.70°)
OKLaboklab(22.89% 0.0052 -0.115)
OKLCHoklch(22.89% 0.115 272.6)
XYZxyz(1.8525, 1.0371, 7.8855)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F51 #51510F
analogous
#0F3051 #0F0F51 #300F51
triadic
#0F0F51 #510F0F #0F510F
tetradic
#0F0F51 #510F30 #51510F #0F5130
square
#0F0F51 #510F30 #51510F #0F5130
split-complementary
#0F0F51 #51300F #30510F
monochromatic
#05051A #05051D #0F0F51 #191985 #2222B8

Accessibility & contrast

On white

17.39
#0F0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0F51
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F51#FFFFFF#000000##FFFFFF
##0F0F511.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f0f51;
/* rgb */ color: rgb(15, 15, 81);
/* oklch */ color: oklch(22.9% 0.115 272.6);
Tailwind
colors: {
  custom: {
    50: '#5b4e83',
    500: '#0f0f51',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f51;
$custom-light: #5b4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f51",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 240,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.22894,
    "c": 0.11516,
    "h": 272.6
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0F0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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