#0C1C4A#0C1C4A

#0C1C4A is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.6% C 0.088 H 265.6°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#0C1C4A
RGBrgb(12, 28, 74)
HSLhsl(225, 72%, 17%)
HSVhsv(225, 84%, 29%)
CMYKcmyk(83.8%, 62.2%, 0%, 71%)
CIE-LABlab(11.98, 12.75, -30.54)
CIE-LCHlch(11.98, 33.09, 292.66°)
OKLaboklab(24.59% -0.0067 -0.0881)
OKLCHoklch(24.59% 0.088 265.6)
XYZxyz(1.8025, 1.4029, 6.6530)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C4A #4A3A0C
analogous
#0C3B4A #0C1C4A #1B0C4A
triadic
#0C1C4A #4A0C1C #1C4A0C
tetradic
#0C1C4A #4A0C3B #4A3A0C #0C4A1B
square
#0C1C4A #4A0C3B #4A3A0C #0C4A1B
split-complementary
#0C1C4A #4A1B0C #3B4A0C
monochromatic
#040A1A #040A1A #0C1C4A #15307F #1D44B3

Accessibility & contrast

On white

16.40
#0C1C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0C1C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C4A
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C4A#FFFFFF#000000##FFFFFF
##0C1C4A1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#001D49
Tritanopia (blue-blind)
#00272F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1c4a;
/* rgb */ color: rgb(12, 28, 74);
/* oklch */ color: oklch(24.6% 0.088 265.6);
Tailwind
colors: {
  custom: {
    50: '#56577d',
    500: '#0c1c4a',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c4a;
$custom-light: #56577d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c4a",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 74
  },
  "hsl": {
    "h": 224.516,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24585,
    "c": 0.08834,
    "h": 265.6
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#0C1C4A
secondary
#866F2C
accent
#C039EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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