#0C0D47#0C0D47

#0C0D47 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.1% C 0.104 H 272.3°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#0C0D47
RGBrgb(12, 13, 71)
HSLhsl(239, 71%, 16%)
HSVhsv(239, 83%, 28%)
CMYKcmyk(83.1%, 81.7%, 0%, 72.2%)
CIE-LABlab(7.41, 22.58, -35.92)
CIE-LCHlch(7.41, 42.43, 302.16°)
OKLaboklab(21.13% 0.0043 -0.104)
OKLCHoklch(21.13% 0.104 272.3)
XYZxyz(1.4325, 0.8208, 6.0429)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D47 #47460C
analogous
#0C2B47 #0C0D47 #290C47
triadic
#0C0D47 #470C0D #0D470C
tetradic
#0C0D47 #470C2B #47460C #0C4729
square
#0C0D47 #470C2B #47460C #0C4729
split-complementary
#0C0D47 #47290C #2B470C
monochromatic
#04051A #04051A #0C0D47 #15177B #1E20B0

Accessibility & contrast

On white

18.04
#0C0D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C0D47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D47
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D47#FFFFFF#000000##FFFFFF
##0C0D471.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001346
Tritanopia (blue-blind)
#001E29
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c0d47;
/* rgb */ color: rgb(12, 13, 71);
/* oklch */ color: oklch(21.1% 0.104 272.3);
Tailwind
colors: {
  custom: {
    50: '#574c7b',
    500: '#0c0d47',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d47;
$custom-light: #574c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d47",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 71
  },
  "hsl": {
    "h": 238.983,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21128,
    "c": 0.10412,
    "h": 272.3
  },
  "luminance": 0.00821
}

Semantic roles & 50–950 ramp

primary
#0C0D47
secondary
#83812C
accent
#EB3AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0D47

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

Preview Lab → · Contrast checker → · Palette generator →

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