#0C1A4A#0C1A4A

#0C1A4A is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.091 H 266.8°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#0C1A4A
RGBrgb(12, 26, 74)
HSLhsl(226, 72%, 17%)
HSVhsv(226, 84%, 29%)
CMYKcmyk(83.8%, 64.9%, 0%, 71%)
CIE-LABlab(11.35, 14.29, -31.55)
CIE-LCHlch(11.35, 34.64, 294.37°)
OKLaboklab(24.12% -0.005 -0.0911)
OKLCHoklch(24.12% 0.091 266.8)
XYZxyz(1.7566, 1.3112, 6.6377)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A4A #4A3C0C
analogous
#0C394A #0C1A4A #1D0C4A
triadic
#0C1A4A #4A0C1A #1A4A0C
tetradic
#0C1A4A #4A0C39 #4A3C0C #0C4A1D
square
#0C1A4A #4A0C39 #4A3C0C #0C4A1D
split-complementary
#0C1A4A #4A1D0C #394A0C
monochromatic
#04091A #04091A #0C1A4A #152D7F #1D3FB3

Accessibility & contrast

On white

16.64
#0C1A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#0C1A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1A4A
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A4A#FFFFFF#000000##FFFFFF
##0C1A4A1.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#001B49
Tritanopia (blue-blind)
#00262F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c1a4a;
/* rgb */ color: rgb(12, 26, 74);
/* oklch */ color: oklch(24.1% 0.091 266.8);
Tailwind
colors: {
  custom: {
    50: '#56567d',
    500: '#0c1a4a',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a4a;
$custom-light: #56567d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a4a",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 74
  },
  "hsl": {
    "h": 226.452,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24117,
    "c": 0.09124,
    "h": 266.8
  },
  "luminance": 0.01311
}

Semantic roles & 50–950 ramp

primary
#0C1A4A
secondary
#86722C
accent
#C639EF
background
#F5F5F7
surface
#E9E8EE
border
#C5C4C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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