#0F0C2D#0F0C2D

#0F0C2D is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.2% C 0.064 H 282.1°. Best body text is #FFFFFF at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#0F0C2D
RGBrgb(15, 12, 45)
HSLhsl(245, 58%, 11%)
HSVhsv(245, 73%, 18%)
CMYKcmyk(66.7%, 73.3%, 0%, 82.4%)
CIE-LABlab(5.00, 11.29, -20.98)
CIE-LCHlch(5.00, 23.83, 298.27°)
OKLaboklab(18.24% 0.0134 -0.0625)
OKLCHoklch(18.24% 0.064 282.1)
XYZxyz(0.8020, 0.5539, 2.5468)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C2D #2A2D0C
analogous
#0C192D #0F0C2D #1F0C2D
triadic
#0F0C2D #2D0F0C #0C2D0F
tetradic
#0F0C2D #2D0C19 #2A2D0C #0C2D1F
square
#0F0C2D #2D0C19 #2A2D0C #0C2D1F
split-complementary
#0F0C2D #2D1F0C #192D0C
monochromatic
#080618 #080618 #0F0C2D #1F195D #2F268E

Accessibility & contrast

On white

18.91
#0F0C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0C2D
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C2D#FFFFFF#000000##FFFFFF
##0F0C2D1.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#03141A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0f0c2d;
/* rgb */ color: rgb(15, 12, 45);
/* oklch */ color: oklch(18.2% 0.064 282.1);
Tailwind
colors: {
  custom: {
    50: '#504c66',
    500: '#0f0c2d',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c2d;
$custom-light: #504c66;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c2d",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 245.455,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18244,
    "c": 0.06397,
    "h": 282.1
  },
  "luminance": 0.00554
}

Semantic roles & 50–950 ramp

primary
#0F0C2D
secondary
#63692C
accent
#E147D3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0F0C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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