#0C142B#0C142B

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

Color values

HEX#0C142B
RGBrgb(12, 20, 43)
HSLhsl(225, 56%, 11%)
HSVhsv(225, 72%, 17%)
CMYKcmyk(72.1%, 53.5%, 0%, 83.1%)
CIE-LABlab(6.80, 5.01, -16.66)
CIE-LCHlch(6.80, 17.39, 286.72°)
OKLaboklab(19.79% -0.0021 -0.0477)
OKLCHoklch(19.79% 0.048 267.5)
XYZxyz(0.8377, 0.7528, 2.3862)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C142B #2B230C
analogous
#0C232B #0C142B #130C2B
triadic
#0C142B #2B0C14 #142B0C
tetradic
#0C142B #2B0C23 #2B230C #0C2B13
square
#0C142B #2B0C23 #2B230C #0C2B13
split-complementary
#0C142B #2B130C #232B0C
monochromatic
#070B18 #070B18 #0C142B #192A5B #27418B

Accessibility & contrast

On white

18.25
#0C142B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0C142B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C142B
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C142B#FFFFFF#000000##FFFFFF
##0C142B1.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A172C
Deuteranopia (green-blind)
#06142B
Tritanopia (blue-blind)
#00191D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c142b;
/* rgb */ color: rgb(12, 20, 43);
/* oklch */ color: oklch(19.8% 0.048 267.5);
Tailwind
colors: {
  custom: {
    50: '#4e5164',
    500: '#0c142b',
    950: '#000000',
  },
}
SCSS
$custom: #0c142b;
$custom-light: #4e5164;
$custom-dark: #000000;
JSON
{
  "hex": "#0c142b",
  "rgb": {
    "r": 12,
    "g": 20,
    "b": 43
  },
  "hsl": {
    "h": 224.516,
    "s": 56.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19785,
    "c": 0.04779,
    "h": 267.5
  },
  "luminance": 0.00753
}

Semantic roles & 50–950 ramp

primary
#0C142B
secondary
#66572C
accent
#B948E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #0C142B

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

Preview Lab → · Contrast checker → · Palette generator →

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