#0C1153#0C1153

#0C1153 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.117 H 270.0°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#0C1153
RGBrgb(12, 17, 83)
HSLhsl(236, 75%, 19%)
HSVhsv(236, 86%, 33%)
CMYKcmyk(85.5%, 79.5%, 0%, 67.5%)
CIE-LABlab(9.82, 24.69, -40.26)
CIE-LCHlch(9.82, 47.23, 301.52°)
OKLaboklab(23.29% 0.0001 -0.1166)
OKLCHoklch(23.29% 0.117 270)
XYZxyz(1.9129, 1.1034, 8.2941)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1153 #534E0C
analogous
#0C3453 #0C1153 #2A0C53
triadic
#0C1153 #530C11 #11530C
tetradic
#0C1153 #530C34 #534E0C #0C532A
square
#0C1153 #530C34 #534E0C #0C532A
split-complementary
#0C1153 #532A0C #34530C
monochromatic
#04051B #04061E #0C1153 #141C88 #1B27BE

Accessibility & contrast

On white

17.20
#0C1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0C1153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1153
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1153#FFFFFF#000000##FFFFFF
##0C11531.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F55
Deuteranopia (green-blind)
#001852
Tritanopia (blue-blind)
#002431
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1153;
/* rgb */ color: rgb(12, 17, 83);
/* oklch */ color: oklch(23.3% 0.117 270.0);
Tailwind
colors: {
  custom: {
    50: '#5a4f84',
    500: '#0c1153',
    950: '#000000',
  },
}
SCSS
$custom: #0c1153;
$custom-light: #5a4f84;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1153",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 235.775,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23292,
    "c": 0.1166,
    "h": 270
  },
  "luminance": 0.01104
}

Semantic roles & 50–950 ramp

primary
#0C1153
secondary
#8E872D
accent
#E436F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1153

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

Preview Lab → · Contrast checker → · Palette generator →

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