#0C1146#0C1146

#0C1146 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.098 H 271.1°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#0C1146
RGBrgb(12, 17, 70)
HSLhsl(235, 71%, 16%)
HSVhsv(235, 83%, 27%)
CMYKcmyk(82.9%, 75.7%, 0%, 72.5%)
CIE-LABlab(8.32, 19.40, -33.73)
CIE-LCHlch(8.32, 38.91, 299.90°)
OKLaboklab(21.75% 0.0019 -0.0976)
OKLCHoklch(21.75% 0.098 271.1)
XYZxyz(1.4572, 0.9211, 5.8942)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1146 #46410C
analogous
#0C2E46 #0C1146 #240C46
triadic
#0C1146 #460C11 #11460C
tetradic
#0C1146 #460C2E #46410C #0C4624
square
#0C1146 #460C2E #46410C #0C4624
split-complementary
#0C1146 #46240C #2E460C
monochromatic
#04061A #04061A #0C1146 #151E7A #1E2AAE

Accessibility & contrast

On white

17.73
#0C1146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0C1146 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1146
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1146#FFFFFF#000000##FFFFFF
##0C11461.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001545
Tritanopia (blue-blind)
#001F29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1146;
/* rgb */ color: rgb(12, 17, 70);
/* oklch */ color: oklch(21.8% 0.098 271.1);
Tailwind
colors: {
  custom: {
    50: '#564f7a',
    500: '#0c1146',
    950: '#000000',
  },
}
SCSS
$custom: #0c1146;
$custom-light: #564f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1146",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 234.828,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21753,
    "c": 0.0976,
    "h": 271.1
  },
  "luminance": 0.00921
}

Semantic roles & 50–950 ramp

primary
#0C1146
secondary
#827B2C
accent
#DE3AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1146

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

Preview Lab → · Contrast checker → · Palette generator →

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