#0C1151#0C1151

#0C1151 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.114 H 270.2°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#0C1151
RGBrgb(12, 17, 81)
HSLhsl(236, 74%, 18%)
HSVhsv(236, 85%, 32%)
CMYKcmyk(85.2%, 79%, 0%, 68.2%)
CIE-LABlab(9.58, 23.90, -39.28)
CIE-LCHlch(9.58, 45.98, 301.32°)
OKLaboklab(23.05% 0.0004 -0.1138)
OKLCHoklch(23.05% 0.114 270.2)
XYZxyz(1.8368, 1.0729, 7.8933)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1151 #514C0C
analogous
#0C3351 #0C1151 #290C51
triadic
#0C1151 #510C11 #11510C
tetradic
#0C1151 #510C33 #514C0C #0C5129
square
#0C1151 #510C33 #514C0C #0C5129
split-complementary
#0C1151 #51290C #33510C
monochromatic
#04061B #04061C #0C1151 #141C86 #1C27BC

Accessibility & contrast

On white

17.29
#0C1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1151
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1151#FFFFFF#000000##FFFFFF
##0C11511.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1151;
/* rgb */ color: rgb(12, 17, 81);
/* oklch */ color: oklch(23.0% 0.114 270.2);
Tailwind
colors: {
  custom: {
    50: '#594f83',
    500: '#0c1151',
    950: '#000000',
  },
}
SCSS
$custom: #0c1151;
$custom-light: #594f83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1151",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 235.652,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23049,
    "c": 0.11376,
    "h": 270.2
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#0C1151
secondary
#8C852C
accent
#E337F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1151

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

Preview Lab → · Contrast checker → · Palette generator →

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