#0C1149#0C1149

#0C1149 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.102 H 270.9°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#0C1149
RGBrgb(12, 17, 73)
HSLhsl(235, 72%, 17%)
HSVhsv(235, 84%, 29%)
CMYKcmyk(83.6%, 76.7%, 0%, 71.4%)
CIE-LABlab(8.65, 20.65, -35.28)
CIE-LCHlch(8.65, 40.88, 300.34°)
OKLaboklab(22.1% 0.0016 -0.1021)
OKLCHoklch(22.1% 0.102 270.9)
XYZxyz(1.5543, 0.9599, 6.4054)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1149 #49440C
analogous
#0C3049 #0C1149 #260C49
triadic
#0C1149 #490C11 #11490C
tetradic
#0C1149 #490C30 #49440C #0C4926
square
#0C1149 #490C30 #49440C #0C4926
split-complementary
#0C1149 #49260C #30490C
monochromatic
#04061A #04061A #0C1149 #151D7E #1D29B2

Accessibility & contrast

On white

17.62
#0C1149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C1149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1149
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1149#FFFFFF#000000##FFFFFF
##0C11491.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4B
Deuteranopia (green-blind)
#001648
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c1149;
/* rgb */ color: rgb(12, 17, 73);
/* oklch */ color: oklch(22.1% 0.102 270.9);
Tailwind
colors: {
  custom: {
    50: '#574f7c',
    500: '#0c1149',
    950: '#000000',
  },
}
SCSS
$custom: #0c1149;
$custom-light: #574f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1149",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 73
  },
  "hsl": {
    "h": 235.082,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.22099,
    "c": 0.10211,
    "h": 270.9
  },
  "luminance": 0.0096
}

Semantic roles & 50–950 ramp

primary
#0C1149
secondary
#857E2C
accent
#E039EE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #0C1149

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

Preview Lab → · Contrast checker → · Palette generator →

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