#0C1145#0C1145

#0C1145 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.096 H 271.2°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#0C1145
RGBrgb(12, 17, 69)
HSLhsl(235, 70%, 16%)
HSVhsv(235, 83%, 27%)
CMYKcmyk(82.6%, 75.4%, 0%, 72.9%)
CIE-LABlab(8.21, 18.98, -33.21)
CIE-LCHlch(8.21, 38.25, 299.75°)
OKLaboklab(21.64% 0.0021 -0.0961)
OKLCHoklch(21.64% 0.096 271.2)
XYZxyz(1.4259, 0.9086, 5.7293)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1145 #45400C
analogous
#0C2D45 #0C1145 #230C45
triadic
#0C1145 #450C11 #11450C
tetradic
#0C1145 #450C2D #45400C #0C4523
square
#0C1145 #450C2D #45400C #0C4523
split-complementary
#0C1145 #45230C #2D450C
monochromatic
#05061A #05061A #0C1145 #151E79 #1E2BAD

Accessibility & contrast

On white

17.77
#0C1145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1145
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1145#FFFFFF#000000##FFFFFF
##0C11451.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1145;
/* rgb */ color: rgb(12, 17, 69);
/* oklch */ color: oklch(21.6% 0.096 271.2);
Tailwind
colors: {
  custom: {
    50: '#564f79',
    500: '#0c1145',
    950: '#000000',
  },
}
SCSS
$custom: #0c1145;
$custom-light: #564f79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1145",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 234.737,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21639,
    "c": 0.09608,
    "h": 271.2
  },
  "luminance": 0.00909
}

Semantic roles & 50–950 ramp

primary
#0C1145
secondary
#81792C
accent
#DD3BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1145

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

Preview Lab → · Contrast checker → · Palette generator →

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