#0C0F2D#0C0F2D

#0C0F2D is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.7% C 0.060 H 274.7°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#0C0F2D
RGBrgb(12, 15, 45)
HSLhsl(235, 58%, 11%)
HSVhsv(235, 73%, 18%)
CMYKcmyk(73.3%, 66.7%, 0%, 82.4%)
CIE-LABlab(5.50, 8.88, -20.21)
CIE-LCHlch(5.50, 22.07, 293.73°)
OKLaboklab(18.66% 0.0049 -0.0595)
OKLCHoklch(18.66% 0.06 274.7)
XYZxyz(0.7959, 0.6092, 2.5578)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F2D #2D2A0C
analogous
#0C1F2D #0C0F2D #190C2D
triadic
#0C0F2D #2D0C0F #0F2D0C
tetradic
#0C0F2D #2D0C1F #2D2A0C #0C2D19
square
#0C0F2D #2D0C1F #2D2A0C #0C2D19
split-complementary
#0C0F2D #2D190C #1F2D0C
monochromatic
#060818 #060818 #0C0F2D #191F5D #262F8E

Accessibility & contrast

On white

18.72
#0C0F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#0C0F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0F2D
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F2D#FFFFFF#000000##FFFFFF
##0C0F2D1.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c0f2d;
/* rgb */ color: rgb(12, 15, 45);
/* oklch */ color: oklch(18.7% 0.060 274.7);
Tailwind
colors: {
  custom: {
    50: '#4e4d66',
    500: '#0c0f2d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f2d;
$custom-light: #4e4d66;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f2d",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 234.545,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18663,
    "c": 0.05972,
    "h": 274.7
  },
  "luminance": 0.00609
}

Semantic roles & 50–950 ramp

primary
#0C0F2D
secondary
#69632C
accent
#D347E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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