#0C0D2F#0C0D2F

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

Color values

HEX#0C0D2F
RGBrgb(12, 13, 47)
HSLhsl(238, 59%, 12%)
HSVhsv(238, 74%, 18%)
CMYKcmyk(74.5%, 72.3%, 0%, 81.6%)
CIE-LABlab(5.16, 10.88, -22.24)
CIE-LCHlch(5.16, 24.76, 296.06°)
OKLaboklab(18.39% 0.0074 -0.0661)
OKLCHoklch(18.39% 0.066 276.4)
XYZxyz(0.8085, 0.5712, 2.7564)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D2F #2F2E0C
analogous
#0C1F2F #0C0D2F #1D0C2F
triadic
#0C0D2F #2F0C0D #0D2F0C
tetradic
#0C0D2F #2F0C1F #2F2E0C #0C2F1D
square
#0C0D2F #2F0C1F #2F2E0C #0C2F1D
split-complementary
#0C0D2F #2F1D0C #1F2F0C
monochromatic
#060718 #060718 #0C0D2F #181A60 #252891

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C0D2F#FFFFFF#000000##FFFFFF
##0C0D2F1.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)
#001330
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#00151C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c0d2f;
/* rgb */ color: rgb(12, 13, 47);
/* oklch */ color: oklch(18.4% 0.066 276.4);
Tailwind
colors: {
  custom: {
    50: '#4f4c68',
    500: '#0c0d2f',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d2f;
$custom-light: #4f4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d2f",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 238.286,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18387,
    "c": 0.06649,
    "h": 276.4
  },
  "luminance": 0.00571
}

Semantic roles & 50–950 ramp

primary
#0C0D2F
secondary
#6B692C
accent
#DE45E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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