#0C1C4C#0C1C4C

#0C1C4C is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.8% C 0.092 H 265.9°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#0C1C4C
RGBrgb(12, 28, 76)
HSLhsl(225, 73%, 17%)
HSVhsv(225, 84%, 30%)
CMYKcmyk(84.2%, 63.2%, 0%, 70.2%)
CIE-LABlab(12.16, 13.63, -31.62)
CIE-LCHlch(12.16, 34.44, 293.32°)
OKLaboklab(24.78% -0.0066 -0.0913)
OKLCHoklch(24.78% 0.092 265.9)
XYZxyz(1.8709, 1.4303, 7.0135)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C4C #4C3C0C
analogous
#0C3C4C #0C1C4C #1C0C4C
triadic
#0C1C4C #4C0C1C #1C4C0C
tetradic
#0C1C4C #4C0C3C #4C3C0C #0C4C1C
square
#0C1C4C #4C0C3C #4C3C0C #0C4C1C
split-complementary
#0C1C4C #4C1C0C #3C4C0C
monochromatic
#040A1A #040A1A #0C1C4C #142F81 #1D43B6

Accessibility & contrast

On white

16.33
#0C1C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1C4C
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C4C#FFFFFF#000000##FFFFFF
##0C1C4C1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#001D4B
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1c4c;
/* rgb */ color: rgb(12, 28, 76);
/* oklch */ color: oklch(24.8% 0.092 265.9);
Tailwind
colors: {
  custom: {
    50: '#57577e',
    500: '#0c1c4c',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c4c;
$custom-light: #57577e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c4c",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 76
  },
  "hsl": {
    "h": 225,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24778,
    "c": 0.09151,
    "h": 265.9
  },
  "luminance": 0.0143
}

Semantic roles & 50–950 ramp

primary
#0C1C4C
secondary
#88712C
accent
#C238EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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