#0C142D#0C142D

#0C142D is a very dark, muted blue. Relative luminance 0.008; OKLCH L 19.9% C 0.051 H 268.2°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#0C142D
RGBrgb(12, 20, 45)
HSLhsl(225, 58%, 11%)
HSVhsv(225, 73%, 18%)
CMYKcmyk(73.3%, 55.6%, 0%, 82.4%)
CIE-LABlab(6.94, 5.94, -17.93)
CIE-LCHlch(6.94, 18.89, 288.33°)
OKLaboklab(19.95% -0.0016 -0.0514)
OKLCHoklch(19.95% 0.051 268.2)
XYZxyz(0.8753, 0.7679, 2.5842)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C142D #2D250C
analogous
#0C242D #0C142D #140C2D
triadic
#0C142D #2D0C14 #142D0C
tetradic
#0C142D #2D0C24 #2D250C #0C2D14
square
#0C142D #2D0C24 #2D250C #0C2D14
split-complementary
#0C142D #2D140C #242D0C
monochromatic
#060B18 #060B18 #0C142D #19295D #263F8E

Accessibility & contrast

On white

18.20
#0C142D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C142D
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C142D#FFFFFF#000000##FFFFFF
##0C142D1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08172E
Deuteranopia (green-blind)
#05142C
Tritanopia (blue-blind)
#001A1E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c142d;
/* rgb */ color: rgb(12, 20, 45);
/* oklch */ color: oklch(19.9% 0.051 268.2);
Tailwind
colors: {
  custom: {
    50: '#4e5166',
    500: '#0c142d',
    950: '#000000',
  },
}
SCSS
$custom: #0c142d;
$custom-light: #4e5166;
$custom-dark: #000000;
JSON
{
  "hex": "#0c142d",
  "rgb": {
    "r": 12,
    "g": 20,
    "b": 45
  },
  "hsl": {
    "h": 225.455,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.19949,
    "c": 0.05143,
    "h": 268.2
  },
  "luminance": 0.00768
}

Semantic roles & 50–950 ramp

primary
#0C142D
secondary
#695A2C
accent
#BC47E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C142D

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

Preview Lab → · Contrast checker → · Palette generator →

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