#0F0F2C#0F0F2C

#0F0F2C is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.8% C 0.057 H 279.4°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#0F0F2C
RGBrgb(15, 15, 44)
HSLhsl(240, 49%, 12%)
HSVhsv(240, 66%, 17%)
CMYKcmyk(65.9%, 65.9%, 0%, 82.7%)
CIE-LABlab(5.65, 9.35, -19.22)
CIE-LCHlch(5.65, 21.37, 295.95°)
OKLaboklab(18.84% 0.0093 -0.0563)
OKLCHoklch(18.84% 0.057 279.4)
XYZxyz(0.8223, 0.6250, 2.4597)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F2C #2C2C0F
analogous
#0F1E2C #0F0F2C #1E0F2C
triadic
#0F0F2C #2C0F0F #0F2C0F
tetradic
#0F0F2C #2C0F1E #2C2C0F #0F2C1E
square
#0F0F2C #2C0F1E #2C2C0F #0F2C1E
split-complementary
#0F0F2C #2C1E0F #1E2C0F
monochromatic
#080817 #080817 #0F0F2C #1F1F5A #2E2E87

Accessibility & contrast

On white

18.67
#0F0F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0F2C
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F2C#FFFFFF#000000##FFFFFF
##0F0F2C1.0018.671.1318.67
#FFFFFF18.671.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02142D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#04161B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0f0f2c;
/* rgb */ color: rgb(15, 15, 44);
/* oklch */ color: oklch(18.8% 0.057 279.4);
Tailwind
colors: {
  custom: {
    50: '#504d65',
    500: '#0f0f2c',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f2c;
$custom-light: #504d65;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f2c",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 240,
    "s": 49.153,
    "l": 11.569
  },
  "oklch": {
    "l": 0.1884,
    "c": 0.05708,
    "h": 279.4
  },
  "luminance": 0.00625
}

Semantic roles & 50–950 ramp

primary
#0F0F2C
secondary
#656531
accent
#D94FD9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0F0F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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