#0C1D46#0C1D46

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

Color values

HEX#0C1D46
RGBrgb(12, 29, 70)
HSLhsl(222, 71%, 16%)
HSVhsv(222, 83%, 27%)
CMYKcmyk(82.9%, 58.6%, 0%, 72.5%)
CIE-LABlab(11.95, 10.18, -27.81)
CIE-LCHlch(11.95, 29.61, 290.12°)
OKLaboklab(24.46% -0.008 -0.08)
OKLCHoklch(24.46% 0.08 264.3)
XYZxyz(1.6961, 1.3989, 5.9738)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D46 #46350C
analogous
#0C3A46 #0C1D46 #180C46
triadic
#0C1D46 #460C1D #1D460C
tetradic
#0C1D46 #460C3A #46350C #0C4618
square
#0C1D46 #460C3A #46350C #0C4618
split-complementary
#0C1D46 #46180C #3A460C
monochromatic
#040B1A #040B1A #0C1D46 #15337A #1E48AE

Accessibility & contrast

On white

16.41
#0C1D46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1D46
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D46#FFFFFF#000000##FFFFFF
##0C1D461.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032247
Deuteranopia (green-blind)
#001D45
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1d46;
/* rgb */ color: rgb(12, 29, 70);
/* oklch */ color: oklch(24.5% 0.080 264.3);
Tailwind
colors: {
  custom: {
    50: '#55587a',
    500: '#0c1d46',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d46;
$custom-light: #55587a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d46",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 70
  },
  "hsl": {
    "h": 222.414,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24455,
    "c": 0.08043,
    "h": 264.3
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#0C1D46
secondary
#82692C
accent
#B93AED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1D46

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

Preview Lab → · Contrast checker → · Palette generator →

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