#0C1747#0C1747

#0C1747 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.091 H 268.3°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#0C1747
RGBrgb(12, 23, 71)
HSLhsl(229, 71%, 16%)
HSVhsv(229, 83%, 28%)
CMYKcmyk(83.1%, 67.6%, 0%, 72.2%)
CIE-LABlab(10.15, 15.29, -31.43)
CIE-LCHlch(10.15, 34.95, 295.95°)
OKLaboklab(23.13% -0.0026 -0.0908)
OKLCHoklch(23.13% 0.091 268.3)
XYZxyz(1.5950, 1.1457, 6.0971)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1747 #473C0C
analogous
#0C3547 #0C1747 #1F0C47
triadic
#0C1747 #470C17 #17470C
tetradic
#0C1747 #470C35 #473C0C #0C471F
square
#0C1747 #470C35 #473C0C #0C471F
split-complementary
#0C1747 #471F0C #35470C
monochromatic
#04081A #04081A #0C1747 #15287B #1E39B0

Accessibility & contrast

On white

17.08
#0C1747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1747 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1747
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1747#FFFFFF#000000##FFFFFF
##0C17471.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#001946
Tritanopia (blue-blind)
#00232C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1747;
/* rgb */ color: rgb(12, 23, 71);
/* oklch */ color: oklch(23.1% 0.091 268.3);
Tailwind
colors: {
  custom: {
    50: '#56537b',
    500: '#0c1747',
    950: '#000000',
  },
}
SCSS
$custom: #0c1747;
$custom-light: #56537b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1747",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 71
  },
  "hsl": {
    "h": 228.814,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23132,
    "c": 0.09082,
    "h": 268.3
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#0C1747
secondary
#83732C
accent
#CC3AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1747

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

Preview Lab → · Contrast checker → · Palette generator →

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