#0C0E2D#0C0E2D

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

Color values

HEX#0C0E2D
RGBrgb(12, 14, 45)
HSLhsl(236, 58%, 11%)
HSVhsv(236, 73%, 18%)
CMYKcmyk(73.3%, 68.9%, 0%, 82.4%)
CIE-LABlab(5.25, 9.40, -20.60)
CIE-LCHlch(5.25, 22.64, 294.52°)
OKLaboklab(18.42% 0.0062 -0.0611)
OKLCHoklch(18.42% 0.061 275.8)
XYZxyz(0.7822, 0.5816, 2.5532)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E2D #2D2B0C
analogous
#0C1E2D #0C0E2D #1A0C2D
triadic
#0C0E2D #2D0C0E #0E2D0C
tetradic
#0C0E2D #2D0C1E #2D2B0C #0C2D1A
square
#0C0E2D #2D0C1E #2D2B0C #0C2D1A
split-complementary
#0C0E2D #2D1A0C #1E2D0C
monochromatic
#060818 #060818 #0C0E2D #191D5D #262C8E

Accessibility & contrast

On white

18.81
#0C0E2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0E2D
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E2D#FFFFFF#000000##FFFFFF
##0C0E2D1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#00151B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c0e2d;
/* rgb */ color: rgb(12, 14, 45);
/* oklch */ color: oklch(18.4% 0.061 275.8);
Tailwind
colors: {
  custom: {
    50: '#4e4d66',
    500: '#0c0e2d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e2d;
$custom-light: #4e4d66;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e2d",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 45
  },
  "hsl": {
    "h": 236.364,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.1842,
    "c": 0.06138,
    "h": 275.8
  },
  "luminance": 0.00582
}

Semantic roles & 50–950 ramp

primary
#0C0E2D
secondary
#69652C
accent
#D847E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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