#0C1D47#0C1D47

#0C1D47 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.082 H 264.5°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#0C1D47
RGBrgb(12, 29, 71)
HSLhsl(223, 71%, 16%)
HSVhsv(223, 83%, 28%)
CMYKcmyk(83.1%, 59.2%, 0%, 72.2%)
CIE-LABlab(12.03, 10.63, -28.36)
CIE-LCHlch(12.03, 30.29, 290.55°)
OKLaboklab(24.55% -0.0079 -0.0817)
OKLCHoklch(24.55% 0.082 264.5)
XYZxyz(1.7279, 1.4116, 6.1414)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D47 #47360C
analogous
#0C3B47 #0C1D47 #190C47
triadic
#0C1D47 #470C1D #1D470C
tetradic
#0C1D47 #470C3B #47360C #0C4719
square
#0C1D47 #470C3B #47360C #0C4719
split-complementary
#0C1D47 #47190C #3B470C
monochromatic
#040B1A #040B1A #0C1D47 #15327B #1E48B0

Accessibility & contrast

On white

16.38
#0C1D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1D47
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D47#FFFFFF#000000##FFFFFF
##0C1D471.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022248
Deuteranopia (green-blind)
#001D46
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1d47;
/* rgb */ color: rgb(12, 29, 71);
/* oklch */ color: oklch(24.5% 0.082 264.5);
Tailwind
colors: {
  custom: {
    50: '#55587b',
    500: '#0c1d47',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d47;
$custom-light: #55587b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d47",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 71
  },
  "hsl": {
    "h": 222.712,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24546,
    "c": 0.08205,
    "h": 264.5
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#0C1D47
secondary
#836A2C
accent
#BA3AEE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1D47

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

Preview Lab → · Contrast checker → · Palette generator →

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