#0C1045#0C1045

#0C1045 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.097 H 271.6°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#0C1045
RGBrgb(12, 16, 69)
HSLhsl(236, 70%, 16%)
HSVhsv(236, 83%, 27%)
CMYKcmyk(82.6%, 76.8%, 0%, 72.9%)
CIE-LABlab(7.93, 19.71, -33.66)
CIE-LCHlch(7.93, 39.01, 300.36°)
OKLaboklab(21.44% 0.0027 -0.0974)
OKLCHoklch(21.44% 0.097 271.6)
XYZxyz(1.4107, 0.8783, 5.7242)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1045 #45410C
analogous
#0C2C45 #0C1045 #240C45
triadic
#0C1045 #450C10 #10450C
tetradic
#0C1045 #450C2C #45410C #0C4524
square
#0C1045 #450C2C #45410C #0C4524
split-complementary
#0C1045 #45240C #2C450C
monochromatic
#05061A #05061A #0C1045 #151C79 #1E28AD

Accessibility & contrast

On white

17.86
#0C1045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1045
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1045#FFFFFF#000000##FFFFFF
##0C10451.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001544
Tritanopia (blue-blind)
#001E28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c1045;
/* rgb */ color: rgb(12, 16, 69);
/* oklch */ color: oklch(21.4% 0.097 271.6);
Tailwind
colors: {
  custom: {
    50: '#564e79',
    500: '#0c1045',
    950: '#000000',
  },
}
SCSS
$custom: #0c1045;
$custom-light: #564e79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1045",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 235.789,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21441,
    "c": 0.09741,
    "h": 271.6
  },
  "luminance": 0.00878
}

Semantic roles & 50–950 ramp

primary
#0C1045
secondary
#817B2C
accent
#E13BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C1045

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

Preview Lab → · Contrast checker → · Palette generator →

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