#0C1D4D#0C1D4D

#0C1D4D is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.092 H 265.4°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#0C1D4D
RGBrgb(12, 29, 77)
HSLhsl(224, 73%, 17%)
HSVhsv(224, 84%, 30%)
CMYKcmyk(84.4%, 62.3%, 0%, 69.8%)
CIE-LABlab(12.56, 13.31, -31.66)
CIE-LCHlch(12.56, 34.34, 292.80°)
OKLaboklab(25.11% -0.0074 -0.0913)
OKLCHoklch(25.11% 0.092 265.4)
XYZxyz(1.9301, 1.4925, 7.2061)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D4D #4D3C0C
analogous
#0C3D4D #0C1D4D #1C0C4D
triadic
#0C1D4D #4D0C1D #1D4D0C
tetradic
#0C1D4D #4D0C3D #4D3C0C #0C4D1C
square
#0C1D4D #4D0C3D #4D3C0C #0C4D1C
split-complementary
#0C1D4D #4D1C0C #3D4D0C
monochromatic
#040A1A #040A1A #0C1D4D #143182 #1D45B7

Accessibility & contrast

On white

16.17
#0C1D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1D4D
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D4D#FFFFFF#000000##FFFFFF
##0C1D4D1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1d4d;
/* rgb */ color: rgb(12, 29, 77);
/* oklch */ color: oklch(25.1% 0.092 265.4);
Tailwind
colors: {
  custom: {
    50: '#57587f',
    500: '#0c1d4d',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d4d;
$custom-light: #57587f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d4d",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 77
  },
  "hsl": {
    "h": 224.308,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25109,
    "c": 0.09165,
    "h": 265.4
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#0C1D4D
secondary
#89702C
accent
#C038F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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