#0C0D2D#0C0D2D

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

Color values

HEX#0C0D2D
RGBrgb(12, 13, 45)
HSLhsl(238, 58%, 11%)
HSVhsv(238, 73%, 18%)
CMYKcmyk(73.3%, 71.1%, 0%, 82.4%)
CIE-LABlab(5.02, 9.88, -20.98)
CIE-LCHlch(5.02, 23.19, 295.21°)
OKLaboklab(18.18% 0.0074 -0.0626)
OKLCHoklch(18.18% 0.063 276.8)
XYZxyz(0.7690, 0.5554, 2.5488)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D2D #2D2C0C
analogous
#0C1D2D #0C0D2D #1B0C2D
triadic
#0C0D2D #2D0C0D #0D2D0C
tetradic
#0C0D2D #2D0C1D #2D2C0C #0C2D1B
square
#0C0D2D #2D0C1D #2D2C0C #0C2D1B
split-complementary
#0C0D2D #2D1B0C #1D2D0C
monochromatic
#060718 #060718 #0C0D2D #191B5D #26298E

Accessibility & contrast

On white

18.90
#0C0D2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0D2D
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D2D#FFFFFF#000000##FFFFFF
##0C0D2D1.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0d2d;
/* rgb */ color: rgb(12, 13, 45);
/* oklch */ color: oklch(18.2% 0.063 276.8);
Tailwind
colors: {
  custom: {
    50: '#4e4c66',
    500: '#0c0d2d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d2d;
$custom-light: #4e4c66;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d2d",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 45
  },
  "hsl": {
    "h": 238.182,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18184,
    "c": 0.06304,
    "h": 276.8
  },
  "luminance": 0.00555
}

Semantic roles & 50–950 ramp

primary
#0C0D2D
secondary
#69672C
accent
#DC47E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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