#0C1142#0C1142

#0C1142 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.091 H 271.5°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#0C1142
RGBrgb(12, 17, 66)
HSLhsl(234, 69%, 15%)
HSVhsv(234, 82%, 26%)
CMYKcmyk(81.8%, 74.2%, 0%, 74.1%)
CIE-LABlab(7.88, 17.71, -31.63)
CIE-LCHlch(7.88, 36.25, 299.25°)
OKLaboklab(21.3% 0.0024 -0.0914)
OKLCHoklch(21.3% 0.091 271.5)
XYZxyz(1.3351, 0.8723, 5.2512)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1142 #423D0C
analogous
#0C2C42 #0C1142 #220C42
triadic
#0C1142 #420C11 #11420C
tetradic
#0C1142 #420C2C #423D0C #0C4222
square
#0C1142 #420C2C #423D0C #0C4222
split-complementary
#0C1142 #42220C #2C420C
monochromatic
#05071A #05071A #0C1142 #151E76 #1F2CAA

Accessibility & contrast

On white

17.88
#0C1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0C1142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1142
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1142#FFFFFF#000000##FFFFFF
##0C11421.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#001E27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c1142;
/* rgb */ color: rgb(12, 17, 66);
/* oklch */ color: oklch(21.3% 0.091 271.5);
Tailwind
colors: {
  custom: {
    50: '#554e77',
    500: '#0c1142',
    950: '#000000',
  },
}
SCSS
$custom: #0c1142;
$custom-light: #554e77;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1142",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 234.444,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21301,
    "c": 0.09146,
    "h": 271.5
  },
  "luminance": 0.00872
}

Semantic roles & 50–950 ramp

primary
#0C1142
secondary
#7E762C
accent
#DC3CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1142

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

Preview Lab → · Contrast checker → · Palette generator →

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