#0F0C2F#0F0C2F

#0F0C2F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.4% C 0.067 H 281.4°. Best body text is #FFFFFF at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#0F0C2F
RGBrgb(15, 12, 47)
HSLhsl(245, 59%, 12%)
HSVhsv(245, 74%, 18%)
CMYKcmyk(68.1%, 74.5%, 0%, 81.6%)
CIE-LABlab(5.15, 12.29, -22.25)
CIE-LCHlch(5.15, 25.42, 298.90°)
OKLaboklab(18.45% 0.0133 -0.066)
OKLCHoklch(18.45% 0.067 281.4)
XYZxyz(0.8414, 0.5697, 2.7544)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C2F #2C2F0C
analogous
#0C1B2F #0F0C2F #210C2F
triadic
#0F0C2F #2F0F0C #0C2F0F
tetradic
#0F0C2F #2F0C1B #2C2F0C #0C2F21
square
#0F0C2F #2F0C1B #2C2F0C #0C2F21
split-complementary
#0F0C2F #2F210C #1B2F0C
monochromatic
#080618 #080618 #0F0C2F #1F1860 #2E2591

Accessibility & contrast

On white

18.85
#0F0C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0C2F
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C2F#FFFFFF#000000##FFFFFF
##0F0C2F1.0018.851.1118.85
#FFFFFF18.851.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#02141B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0f0c2f;
/* rgb */ color: rgb(15, 12, 47);
/* oklch */ color: oklch(18.4% 0.067 281.4);
Tailwind
colors: {
  custom: {
    50: '#504c68',
    500: '#0f0c2f',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c2f;
$custom-light: #504c68;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c2f",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 245.143,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18446,
    "c": 0.06735,
    "h": 281.4
  },
  "luminance": 0.0057
}

Semantic roles & 50–950 ramp

primary
#0F0C2F
secondary
#656B2C
accent
#E345D5
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0F0C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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