#0C152D#0C152D

#0C152D is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.2% C 0.050 H 266.5°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#0C152D
RGBrgb(12, 21, 45)
HSLhsl(224, 58%, 11%)
HSVhsv(224, 73%, 18%)
CMYKcmyk(73.3%, 53.3%, 0%, 82.4%)
CIE-LABlab(7.26, 5.25, -17.41)
CIE-LCHlch(7.26, 18.19, 286.78°)
OKLaboklab(20.22% -0.003 -0.0497)
OKLCHoklch(20.22% 0.05 266.5)
XYZxyz(0.8933, 0.8039, 2.5902)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C152D #2D240C
analogous
#0C252D #0C152D #130C2D
triadic
#0C152D #2D0C15 #152D0C
tetradic
#0C152D #2D0C25 #2D240C #0C2D13
square
#0C152D #2D0C25 #2D240C #0C2D13
split-complementary
#0C152D #2D130C #252D0C
monochromatic
#060B18 #060B18 #0C152D #192C5D #26428E

Accessibility & contrast

On white

18.09
#0C152D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C152D
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C152D#FFFFFF#000000##FFFFFF
##0C152D1.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A182E
Deuteranopia (green-blind)
#06152C
Tritanopia (blue-blind)
#001A1E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c152d;
/* rgb */ color: rgb(12, 21, 45);
/* oklch */ color: oklch(20.2% 0.050 266.5);
Tailwind
colors: {
  custom: {
    50: '#4e5166',
    500: '#0c152d',
    950: '#000000',
  },
}
SCSS
$custom: #0c152d;
$custom-light: #4e5166;
$custom-dark: #000000;
JSON
{
  "hex": "#0c152d",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 45
  },
  "hsl": {
    "h": 223.636,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20219,
    "c": 0.04982,
    "h": 266.5
  },
  "luminance": 0.00804
}

Semantic roles & 50–950 ramp

primary
#0C152D
secondary
#69582C
accent
#B747E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C152D

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

Preview Lab → · Contrast checker → · Palette generator →

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