#0C1D4C#0C1D4C

#0C1D4C is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.0% C 0.090 H 265.3°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#0C1D4C
RGBrgb(12, 29, 76)
HSLhsl(224, 73%, 17%)
HSVhsv(224, 84%, 30%)
CMYKcmyk(84.2%, 61.8%, 0%, 70.2%)
CIE-LABlab(12.47, 12.86, -31.12)
CIE-LCHlch(12.47, 33.67, 292.46°)
OKLaboklab(25.01% -0.0074 -0.0898)
OKLCHoklch(25.01% 0.09 265.3)
XYZxyz(1.8950, 1.4785, 7.0216)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D4C #4C3B0C
analogous
#0C3D4C #0C1D4C #1B0C4C
triadic
#0C1D4C #4C0C1D #1D4C0C
tetradic
#0C1D4C #4C0C3D #4C3B0C #0C4C1B
square
#0C1D4C #4C0C3D #4C3B0C #0C4C1B
split-complementary
#0C1D4C #4C1B0C #3D4C0C
monochromatic
#040A1A #040A1A #0C1D4C #143181 #1D45B6

Accessibility & contrast

On white

16.21
#0C1D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C1D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1D4C
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D4C#FFFFFF#000000##FFFFFF
##0C1D4C1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1d4c;
/* rgb */ color: rgb(12, 29, 76);
/* oklch */ color: oklch(25.0% 0.090 265.3);
Tailwind
colors: {
  custom: {
    50: '#57587e',
    500: '#0c1d4c',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d4c;
$custom-light: #57587e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d4c",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 76
  },
  "hsl": {
    "h": 224.063,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25013,
    "c": 0.09007,
    "h": 265.3
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#0C1D4C
secondary
#886F2C
accent
#BF38EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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