#0C142E#0C142E

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

Color values

HEX#0C142E
RGBrgb(12, 20, 46)
HSLhsl(226, 59%, 11%)
HSVhsv(226, 74%, 18%)
CMYKcmyk(73.9%, 56.5%, 0%, 82%)
CIE-LABlab(7.01, 6.41, -18.56)
CIE-LCHlch(7.01, 19.64, 289.05°)
OKLaboklab(20.03% -0.0015 -0.0532)
OKLCHoklch(20.03% 0.053 268.4)
XYZxyz(0.8948, 0.7757, 2.6868)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C142E #2E260C
analogous
#0C252E #0C142E #150C2E
triadic
#0C142E #2E0C14 #142E0C
tetradic
#0C142E #2E0C25 #2E260C #0C2E15
square
#0C142E #2E0C25 #2E260C #0C2E15
split-complementary
#0C142E #2E150C #252E0C
monochromatic
#060B18 #060B18 #0C142E #19295F #253E8F

Accessibility & contrast

On white

18.18
#0C142E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C142E
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C142E#FFFFFF#000000##FFFFFF
##0C142E1.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08172F
Deuteranopia (green-blind)
#04142D
Tritanopia (blue-blind)
#001A1E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c142e;
/* rgb */ color: rgb(12, 20, 46);
/* oklch */ color: oklch(20.0% 0.053 268.4);
Tailwind
colors: {
  custom: {
    50: '#4f5167',
    500: '#0c142e',
    950: '#000000',
  },
}
SCSS
$custom: #0c142e;
$custom-light: #4f5167;
$custom-dark: #000000;
JSON
{
  "hex": "#0c142e",
  "rgb": {
    "r": 12,
    "g": 20,
    "b": 46
  },
  "hsl": {
    "h": 225.882,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20033,
    "c": 0.05324,
    "h": 268.4
  },
  "luminance": 0.00776
}

Semantic roles & 50–950 ramp

primary
#0C142E
secondary
#6A5B2C
accent
#BD46E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C142E

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

Preview Lab → · Contrast checker → · Palette generator →

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