#0C143B#0C143B

#0C143B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.2% C 0.076 H 269.9°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#0C143B
RGBrgb(12, 20, 59)
HSLhsl(230, 66%, 14%)
HSVhsv(230, 80%, 23%)
CMYKcmyk(79.7%, 66.1%, 0%, 76.9%)
CIE-LABlab(8.08, 12.35, -26.31)
CIE-LCHlch(8.08, 29.07, 295.15°)
OKLaboklab(21.23% -0.0001 -0.0758)
OKLCHoklch(21.23% 0.076 269.9)
XYZxyz(1.1909, 0.8941, 4.2466)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C143B #3B330C
analogous
#0C2C3B #0C143B #1C0C3B
triadic
#0C143B #3B0C14 #143B0C
tetradic
#0C143B #3B0C2C #3B330C #0C3B1C
square
#0C143B #3B0C2C #3B330C #0C3B1C
split-complementary
#0C143B #3B1C0C #2C3B0C
monochromatic
#050919 #050919 #0C143B #16256E #2136A1

Accessibility & contrast

On white

17.81
#0C143B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0C143B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C143B
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C143B#FFFFFF#000000##FFFFFF
##0C143B1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#001E25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c143b;
/* rgb */ color: rgb(12, 20, 59);
/* oklch */ color: oklch(21.2% 0.076 269.9);
Tailwind
colors: {
  custom: {
    50: '#525171',
    500: '#0c143b',
    950: '#000000',
  },
}
SCSS
$custom: #0c143b;
$custom-light: #525171;
$custom-dark: #000000;
JSON
{
  "hex": "#0c143b",
  "rgb": {
    "r": 12,
    "g": 20,
    "b": 59
  },
  "hsl": {
    "h": 229.787,
    "s": 66.197,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21229,
    "c": 0.0758,
    "h": 269.9
  },
  "luminance": 0.00894
}

Semantic roles & 50–950 ramp

primary
#0C143B
secondary
#776A2C
accent
#CC3FE9
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0C143B

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

Preview Lab → · Contrast checker → · Palette generator →

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