#0C1C4D#0C1C4D

#0C1C4D is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.093 H 266.0°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#0C1C4D
RGBrgb(12, 28, 77)
HSLhsl(225, 73%, 17%)
HSVhsv(225, 84%, 30%)
CMYKcmyk(84.4%, 63.6%, 0%, 69.8%)
CIE-LABlab(12.25, 14.08, -32.16)
CIE-LCHlch(12.25, 35.11, 293.64°)
OKLaboklab(24.88% -0.0065 -0.0929)
OKLCHoklch(24.88% 0.093 266)
XYZxyz(1.9060, 1.4443, 7.1981)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C4D #4D3D0C
analogous
#0C3C4D #0C1C4D #1D0C4D
triadic
#0C1C4D #4D0C1C #1C4D0C
tetradic
#0C1C4D #4D0C3C #4D3D0C #0C4D1D
square
#0C1C4D #4D0C3C #4D3D0C #0C4D1D
split-complementary
#0C1C4D #4D1D0C #3C4D0C
monochromatic
#040A1A #040A1A #0C1C4D #142F82 #1D43B7

Accessibility & contrast

On white

16.29
#0C1C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0C1C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C4D
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C4D#FFFFFF#000000##FFFFFF
##0C1C4D1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1c4d;
/* rgb */ color: rgb(12, 28, 77);
/* oklch */ color: oklch(24.9% 0.093 266.0);
Tailwind
colors: {
  custom: {
    50: '#57577f',
    500: '#0c1c4d',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c4d;
$custom-light: #57577f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c4d",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 77
  },
  "hsl": {
    "h": 225.231,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24875,
    "c": 0.09309,
    "h": 266
  },
  "luminance": 0.01444
}

Semantic roles & 50–950 ramp

primary
#0C1C4D
secondary
#89722C
accent
#C338F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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