#0F0C2C#0F0C2C

#0F0C2C is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.062 H 282.5°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#0F0C2C
RGBrgb(15, 12, 44)
HSLhsl(246, 57%, 11%)
HSVhsv(246, 73%, 17%)
CMYKcmyk(65.9%, 72.7%, 0%, 82.7%)
CIE-LABlab(4.93, 10.80, -20.34)
CIE-LCHlch(4.93, 23.03, 297.97°)
OKLaboklab(18.14% 0.0135 -0.0608)
OKLCHoklch(18.14% 0.062 282.5)
XYZxyz(0.7830, 0.5463, 2.4466)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C2C #292C0C
analogous
#0C192C #0F0C2C #1F0C2C
triadic
#0F0C2C #2C0F0C #0C2C0F
tetradic
#0F0C2C #2C0C19 #292C0C #0C2C1F
square
#0F0C2C #2C0C19 #292C0C #0C2C1F
split-complementary
#0F0C2C #2C1F0C #192C0C
monochromatic
#080718 #080718 #0F0C2C #1F195C #30268C

Accessibility & contrast

On white

18.93
#0F0C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0F0C2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0C2C
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C2C#FFFFFF#000000##FFFFFF
##0F0C2C1.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#04141A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0f0c2c;
/* rgb */ color: rgb(15, 12, 44);
/* oklch */ color: oklch(18.1% 0.062 282.5);
Tailwind
colors: {
  custom: {
    50: '#4f4c65',
    500: '#0f0c2c',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c2c;
$custom-light: #4f4c65;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c2c",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 245.625,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18144,
    "c": 0.06227,
    "h": 282.5
  },
  "luminance": 0.00546
}

Semantic roles & 50–950 ramp

primary
#0F0C2C
secondary
#62672C
accent
#E047D2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0F0C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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