#0C0D2B#0C0D2B

#0C0D2B is a very dark, muted blue. Relative luminance 0.005; OKLCH L 18.0% C 0.060 H 277.1°. Best body text is #FFFFFF at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#0C0D2B
RGBrgb(12, 13, 43)
HSLhsl(238, 56%, 11%)
HSVhsv(238, 72%, 17%)
CMYKcmyk(72.1%, 69.8%, 0%, 83.1%)
CIE-LABlab(4.88, 8.92, -19.69)
CIE-LCHlch(4.88, 21.61, 294.38°)
OKLaboklab(17.99% 0.0074 -0.0591)
OKLCHoklch(17.99% 0.06 277.1)
XYZxyz(0.7314, 0.5404, 2.3508)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D2B #2B2A0C
analogous
#0C1C2B #0C0D2B #1A0C2B
triadic
#0C0D2B #2B0C0D #0D2B0C
tetradic
#0C0D2B #2B0C1C #2B2A0C #0C2B1A
square
#0C0D2B #2B0C1C #2B2A0C #0C2B1A
split-complementary
#0C0D2B #2B1A0C #1C2B0C
monochromatic
#070718 #070718 #0C0D2B #191B5B #272A8B

Accessibility & contrast

On white

18.95
#0C0D2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0D2B
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D2B#FFFFFF#000000##FFFFFF
##0C0D2B1.0018.951.1118.95
#FFFFFF18.951.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0d2b;
/* rgb */ color: rgb(12, 13, 43);
/* oklch */ color: oklch(18.0% 0.060 277.1);
Tailwind
colors: {
  custom: {
    50: '#4d4c64',
    500: '#0c0d2b',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d2b;
$custom-light: #4d4c64;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d2b",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 43
  },
  "hsl": {
    "h": 238.065,
    "s": 56.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.17986,
    "c": 0.05954,
    "h": 277.1
  },
  "luminance": 0.0054
}

Semantic roles & 50–950 ramp

primary
#0C0D2B
secondary
#66642C
accent
#DB48E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #0C0D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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