#0C0D2C#0C0D2C

#0C0D2C is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.061 H 277.0°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#0C0D2C
RGBrgb(12, 13, 44)
HSLhsl(238, 57%, 11%)
HSVhsv(238, 73%, 17%)
CMYKcmyk(72.7%, 70.5%, 0%, 82.7%)
CIE-LABlab(4.95, 9.39, -20.33)
CIE-LCHlch(4.95, 22.40, 294.80°)
OKLaboklab(18.08% 0.0074 -0.0608)
OKLCHoklch(18.08% 0.061 277)
XYZxyz(0.7500, 0.5478, 2.4486)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D2C #2C2B0C
analogous
#0C1D2C #0C0D2C #1B0C2C
triadic
#0C0D2C #2C0C0D #0D2C0C
tetradic
#0C0D2C #2C0C1D #2C2B0C #0C2C1B
square
#0C0D2C #2C0C1D #2C2B0C #0C2C1B
split-complementary
#0C0D2C #2C1B0C #1D2C0C
monochromatic
#070718 #070718 #0C0D2C #191B5C #26298C

Accessibility & contrast

On white

18.93
#0C0D2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0D2C
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D2C#FFFFFF#000000##FFFFFF
##0C0D2C1.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#000F2B
Tritanopia (blue-blind)
#00141A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c0d2c;
/* rgb */ color: rgb(12, 13, 44);
/* oklch */ color: oklch(18.1% 0.061 277.0);
Tailwind
colors: {
  custom: {
    50: '#4e4c65',
    500: '#0c0d2c',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d2c;
$custom-light: #4e4c65;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d2c",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 44
  },
  "hsl": {
    "h": 238.125,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18084,
    "c": 0.0613,
    "h": 277
  },
  "luminance": 0.00548
}

Semantic roles & 50–950 ramp

primary
#0C0D2C
secondary
#67662C
accent
#DC47E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0C0D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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