#0C1D4A#0C1D4A

#0C1D4A is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.8% C 0.087 H 265.0°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#0C1D4A
RGBrgb(12, 29, 74)
HSLhsl(224, 72%, 17%)
HSVhsv(224, 84%, 29%)
CMYKcmyk(83.8%, 60.8%, 0%, 71%)
CIE-LABlab(12.29, 11.97, -30.02)
CIE-LCHlch(12.29, 32.32, 291.74°)
OKLaboklab(24.82% -0.0076 -0.0865)
OKLCHoklch(24.82% 0.087 265)
XYZxyz(1.8266, 1.4511, 6.6611)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D4A #4A390C
analogous
#0C3C4A #0C1D4A #1A0C4A
triadic
#0C1D4A #4A0C1D #1D4A0C
tetradic
#0C1D4A #4A0C3C #4A390C #0C4A1A
square
#0C1D4A #4A0C3C #4A390C #0C4A1A
split-complementary
#0C1D4A #4A1A0C #3C4A0C
monochromatic
#040A1A #040A1A #0C1D4A #15327F #1D46B3

Accessibility & contrast

On white

16.28
#0C1D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1D4A
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D4A#FFFFFF#000000##FFFFFF
##0C1D4A1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1d4a;
/* rgb */ color: rgb(12, 29, 74);
/* oklch */ color: oklch(24.8% 0.087 265.0);
Tailwind
colors: {
  custom: {
    50: '#56587d',
    500: '#0c1d4a',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d4a;
$custom-light: #56587d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d4a",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 74
  },
  "hsl": {
    "h": 223.548,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24824,
    "c": 0.08688,
    "h": 265
  },
  "luminance": 0.01451
}

Semantic roles & 50–950 ramp

primary
#0C1D4A
secondary
#866D2C
accent
#BD39EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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