#0C1447#0C1447

#0C1447 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.095 H 269.8°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#0C1447
RGBrgb(12, 20, 71)
HSLhsl(232, 71%, 16%)
HSVhsv(232, 83%, 28%)
CMYKcmyk(83.1%, 71.8%, 0%, 72.2%)
CIE-LABlab(9.27, 17.58, -32.88)
CIE-LCHlch(9.27, 37.28, 298.14°)
OKLaboklab(22.48% -0.0003 -0.0951)
OKLCHoklch(22.48% 0.095 269.8)
XYZxyz(1.5387, 1.0332, 6.0784)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1447 #473F0C
analogous
#0C3247 #0C1447 #220C47
triadic
#0C1447 #470C14 #14470C
tetradic
#0C1447 #470C32 #473F0C #0C4722
square
#0C1447 #470C32 #473F0C #0C4722
split-complementary
#0C1447 #47220C #32470C
monochromatic
#04071A #04071A #0C1447 #15237B #1E31B0

Accessibility & contrast

On white

17.40
#0C1447 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C1447 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1447
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1447#FFFFFF#000000##FFFFFF
##0C14471.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001746
Tritanopia (blue-blind)
#00212B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1447;
/* rgb */ color: rgb(12, 20, 71);
/* oklch */ color: oklch(22.5% 0.095 269.8);
Tailwind
colors: {
  custom: {
    50: '#56517b',
    500: '#0c1447',
    950: '#000000',
  },
}
SCSS
$custom: #0c1447;
$custom-light: #56517b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1447",
  "rgb": {
    "r": 12,
    "g": 20,
    "b": 71
  },
  "hsl": {
    "h": 231.864,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22478,
    "c": 0.09506,
    "h": 269.8
  },
  "luminance": 0.01033
}

Semantic roles & 50–950 ramp

primary
#0C1447
secondary
#83772C
accent
#D53AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1447

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

Preview Lab → · Contrast checker → · Palette generator →

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