#0C142F#0C142F

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

Color values

HEX#0C142F
RGBrgb(12, 20, 47)
HSLhsl(226, 59%, 12%)
HSVhsv(226, 74%, 18%)
CMYKcmyk(74.5%, 57.4%, 0%, 81.6%)
CIE-LABlab(7.08, 6.88, -19.19)
CIE-LCHlch(7.08, 20.38, 289.72°)
OKLaboklab(20.12% -0.0013 -0.055)
OKLCHoklch(20.12% 0.055 268.7)
XYZxyz(0.9147, 0.7836, 2.7918)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C142F #2F270C
analogous
#0C262F #0C142F #160C2F
triadic
#0C142F #2F0C14 #142F0C
tetradic
#0C142F #2F0C26 #2F270C #0C2F16
square
#0C142F #2F0C26 #2F270C #0C2F16
split-complementary
#0C142F #2F160C #262F0C
monochromatic
#060A18 #060A18 #0C142F #182960 #253D91

Accessibility & contrast

On white

18.15
#0C142F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C142F
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C142F#FFFFFF#000000##FFFFFF
##0C142F1.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071730
Deuteranopia (green-blind)
#03142E
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c142f;
/* rgb */ color: rgb(12, 20, 47);
/* oklch */ color: oklch(20.1% 0.055 268.7);
Tailwind
colors: {
  custom: {
    50: '#4f5167',
    500: '#0c142f',
    950: '#000000',
  },
}
SCSS
$custom: #0c142f;
$custom-light: #4f5167;
$custom-dark: #000000;
JSON
{
  "hex": "#0c142f",
  "rgb": {
    "r": 12,
    "g": 20,
    "b": 47
  },
  "hsl": {
    "h": 226.286,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20118,
    "c": 0.05503,
    "h": 268.7
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#0C142F
secondary
#6B5C2C
accent
#BF45E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0C142F

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

Preview Lab → · Contrast checker → · Palette generator →

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