#0C152C#0C152C

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

Color values

HEX#0C152C
RGBrgb(12, 21, 44)
HSLhsl(223, 57%, 11%)
HSVhsv(223, 73%, 17%)
CMYKcmyk(72.7%, 52.3%, 0%, 82.7%)
CIE-LABlab(7.19, 4.79, -16.78)
CIE-LCHlch(7.19, 17.45, 285.94°)
OKLaboklab(20.14% -0.0032 -0.0479)
OKLCHoklch(20.14% 0.048 266.1)
XYZxyz(0.8743, 0.7963, 2.4900)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C152C #2C230C
analogous
#0C252C #0C152C #130C2C
triadic
#0C152C #2C0C15 #152C0C
tetradic
#0C152C #2C0C25 #2C230C #0C2C13
square
#0C152C #2C0C25 #2C230C #0C2C13
split-complementary
#0C152C #2C130C #252C0C
monochromatic
#070B18 #070B18 #0C152C #192C5C #26438C

Accessibility & contrast

On white

18.12
#0C152C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C152C
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C152C#FFFFFF#000000##FFFFFF
##0C152C1.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c152c;
/* rgb */ color: rgb(12, 21, 44);
/* oklch */ color: oklch(20.1% 0.048 266.1);
Tailwind
colors: {
  custom: {
    50: '#4e5165',
    500: '#0c152c',
    950: '#000000',
  },
}
SCSS
$custom: #0c152c;
$custom-light: #4e5165;
$custom-dark: #000000;
JSON
{
  "hex": "#0c152c",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 44
  },
  "hsl": {
    "h": 223.125,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20139,
    "c": 0.04801,
    "h": 266.1
  },
  "luminance": 0.00796
}

Semantic roles & 50–950 ramp

primary
#0C152C
secondary
#67572C
accent
#B547E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #0C152C

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

Preview Lab → · Contrast checker → · Palette generator →

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