#0C1155#0C1155

#0C1155 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.5% C 0.119 H 269.9°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#0C1155
RGBrgb(12, 17, 85)
HSLhsl(236, 75%, 19%)
HSVhsv(236, 86%, 33%)
CMYKcmyk(85.9%, 80%, 0%, 66.7%)
CIE-LABlab(10.07, 25.48, -41.22)
CIE-LCHlch(10.07, 48.46, 301.72°)
OKLaboklab(23.54% -0.0002 -0.1194)
OKLCHoklch(23.54% 0.119 269.9)
XYZxyz(1.9912, 1.1347, 8.7066)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1155 #55500C
analogous
#0C3655 #0C1155 #2C0C55
triadic
#0C1155 #550C11 #11550C
tetradic
#0C1155 #550C36 #55500C #0C552C
square
#0C1155 #550C36 #55500C #0C552C
split-complementary
#0C1155 #552C0C #36550C
monochromatic
#04051B #04061F #0C1155 #141C8B #1B26C0

Accessibility & contrast

On white

17.11
#0C1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1155
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1155#FFFFFF#000000##FFFFFF
##0C11551.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F57
Deuteranopia (green-blind)
#001854
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1155;
/* rgb */ color: rgb(12, 17, 85);
/* oklch */ color: oklch(23.5% 0.119 269.9);
Tailwind
colors: {
  custom: {
    50: '#5b4f86',
    500: '#0c1155',
    950: '#000000',
  },
}
SCSS
$custom: #0c1155;
$custom-light: #5b4f86;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1155",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 235.89,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23536,
    "c": 0.1194,
    "h": 269.9
  },
  "luminance": 0.01135
}

Semantic roles & 50–950 ramp

primary
#0C1155
secondary
#90892D
accent
#E536F2
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1155

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

Preview Lab → · Contrast checker → · Palette generator →

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