#0C152E#0C152E

#0C152E is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.3% C 0.052 H 266.9°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#0C152E
RGBrgb(12, 21, 46)
HSLhsl(224, 59%, 11%)
HSVhsv(224, 74%, 18%)
CMYKcmyk(73.9%, 54.3%, 0%, 82%)
CIE-LABlab(7.33, 5.71, -18.04)
CIE-LCHlch(7.33, 18.92, 287.56°)
OKLaboklab(20.3% -0.0028 -0.0516)
OKLCHoklch(20.3% 0.052 266.9)
XYZxyz(0.9128, 0.8117, 2.6928)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C152E #2E250C
analogous
#0C262E #0C152E #140C2E
triadic
#0C152E #2E0C15 #152E0C
tetradic
#0C152E #2E0C26 #2E250C #0C2E14
square
#0C152E #2E0C26 #2E250C #0C2E14
split-complementary
#0C152E #2E140C #262E0C
monochromatic
#060B18 #060B18 #0C152E #192B5F #25418F

Accessibility & contrast

On white

18.07
#0C152E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C152E
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C152E#FFFFFF#000000##FFFFFF
##0C152E1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09182F
Deuteranopia (green-blind)
#05152D
Tritanopia (blue-blind)
#001B1F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c152e;
/* rgb */ color: rgb(12, 21, 46);
/* oklch */ color: oklch(20.3% 0.052 266.9);
Tailwind
colors: {
  custom: {
    50: '#4f5167',
    500: '#0c152e',
    950: '#000000',
  },
}
SCSS
$custom: #0c152e;
$custom-light: #4f5167;
$custom-dark: #000000;
JSON
{
  "hex": "#0c152e",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 46
  },
  "hsl": {
    "h": 224.118,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20301,
    "c": 0.05164,
    "h": 266.9
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#0C152E
secondary
#6A592C
accent
#B946E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C152E

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

Preview Lab → · Contrast checker → · Palette generator →

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