#0F0F2F#0F0F2F

#0F0F2F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.1% C 0.062 H 278.7°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#0F0F2F
RGBrgb(15, 15, 47)
HSLhsl(240, 52%, 12%)
HSVhsv(240, 68%, 18%)
CMYKcmyk(68.1%, 68.1%, 0%, 81.6%)
CIE-LABlab(5.86, 10.81, -21.12)
CIE-LCHlch(5.86, 23.73, 297.11°)
OKLaboklab(19.12% 0.0095 -0.0616)
OKLCHoklch(19.12% 0.062 278.7)
XYZxyz(0.8808, 0.6484, 2.7675)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F2F #2F2F0F
analogous
#0F1F2F #0F0F2F #1F0F2F
triadic
#0F0F2F #2F0F0F #0F2F0F
tetradic
#0F0F2F #2F0F1F #2F2F0F #0F2F1F
square
#0F0F2F #2F0F1F #2F2F0F #0F2F1F
split-complementary
#0F0F2F #2F1F0F #1F2F0F
monochromatic
#070717 #070717 #0F0F2F #1E1E5D #2D2D8C

Accessibility & contrast

On white

18.59
#0F0F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#0F0F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0F2F
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F2F#FFFFFF#000000##FFFFFF
##0F0F2F1.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#02161D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0f0f2f;
/* rgb */ color: rgb(15, 15, 47);
/* oklch */ color: oklch(19.1% 0.062 278.7);
Tailwind
colors: {
  custom: {
    50: '#504d68',
    500: '#0f0f2f',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f2f;
$custom-light: #504d68;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f2f",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 240,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.1912,
    "c": 0.06236,
    "h": 278.7
  },
  "luminance": 0.00648
}

Semantic roles & 50–950 ramp

primary
#0F0F2F
secondary
#696931
accent
#DB4DDB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0F0F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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