#0C152F#0C152F

#0C152F is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.4% C 0.053 H 267.2°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#0C152F
RGBrgb(12, 21, 47)
HSLhsl(225, 59%, 12%)
HSVhsv(225, 74%, 18%)
CMYKcmyk(74.5%, 55.3%, 0%, 81.6%)
CIE-LABlab(7.40, 6.17, -18.67)
CIE-LCHlch(7.40, 19.66, 288.29°)
OKLaboklab(20.38% -0.0026 -0.0534)
OKLCHoklch(20.38% 0.053 267.2)
XYZxyz(0.9327, 0.8196, 2.7978)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C152F #2F260C
analogous
#0C272F #0C152F #150C2F
triadic
#0C152F #2F0C15 #152F0C
tetradic
#0C152F #2F0C27 #2F260C #0C2F15
square
#0C152F #2F0C27 #2F260C #0C2F15
split-complementary
#0C152F #2F150C #272F0C
monochromatic
#060B18 #060B18 #0C152F #182B60 #254191

Accessibility & contrast

On white

18.04
#0C152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C152F
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C152F#FFFFFF#000000##FFFFFF
##0C152F1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091830
Deuteranopia (green-blind)
#04152E
Tritanopia (blue-blind)
#001B1F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c152f;
/* rgb */ color: rgb(12, 21, 47);
/* oklch */ color: oklch(20.4% 0.053 267.2);
Tailwind
colors: {
  custom: {
    50: '#4f5167',
    500: '#0c152f',
    950: '#000000',
  },
}
SCSS
$custom: #0c152f;
$custom-light: #4f5167;
$custom-dark: #000000;
JSON
{
  "hex": "#0c152f",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 224.571,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20384,
    "c": 0.05343,
    "h": 267.2
  },
  "luminance": 0.0082
}

Semantic roles & 50–950 ramp

primary
#0C152F
secondary
#6B5B2C
accent
#BA45E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C152F

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

Preview Lab → · Contrast checker → · Palette generator →

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