#0C152B#0C152B

#0C152B is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.1% C 0.046 H 265.7°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#0C152B
RGBrgb(12, 21, 43)
HSLhsl(223, 56%, 11%)
HSVhsv(223, 72%, 17%)
CMYKcmyk(72.1%, 51.2%, 0%, 83.1%)
CIE-LABlab(7.13, 4.34, -16.14)
CIE-LCHlch(7.13, 16.72, 285.04°)
OKLaboklab(20.06% -0.0035 -0.0461)
OKLCHoklch(20.06% 0.046 265.7)
XYZxyz(0.8557, 0.7888, 2.3922)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C152B #2B220C
analogous
#0C242B #0C152B #120C2B
triadic
#0C152B #2B0C15 #152B0C
tetradic
#0C152B #2B0C24 #2B220C #0C2B12
square
#0C152B #2B0C24 #2B220C #0C2B12
split-complementary
#0C152B #2B120C #242B0C
monochromatic
#070C18 #070C18 #0C152B #192C5B #27448B

Accessibility & contrast

On white

18.14
#0C152B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C152B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C152B
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C152B#FFFFFF#000000##FFFFFF
##0C152B1.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B172C
Deuteranopia (green-blind)
#08142B
Tritanopia (blue-blind)
#001A1D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c152b;
/* rgb */ color: rgb(12, 21, 43);
/* oklch */ color: oklch(20.1% 0.046 265.7);
Tailwind
colors: {
  custom: {
    50: '#4e5164',
    500: '#0c152b',
    950: '#000000',
  },
}
SCSS
$custom: #0c152b;
$custom-light: #4e5164;
$custom-dark: #000000;
JSON
{
  "hex": "#0c152b",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 43
  },
  "hsl": {
    "h": 222.581,
    "s": 56.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.2006,
    "c": 0.04619,
    "h": 265.7
  },
  "luminance": 0.00789
}

Semantic roles & 50–950 ramp

primary
#0C152B
secondary
#66562C
accent
#B448E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #0C152B

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

Preview Lab → · Contrast checker → · Palette generator →

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