#0C1249#0C1249

#0C1249 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.3% C 0.101 H 270.5°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#0C1249
RGBrgb(12, 18, 73)
HSLhsl(234, 72%, 17%)
HSVhsv(234, 84%, 29%)
CMYKcmyk(83.6%, 75.3%, 0%, 71.4%)
CIE-LABlab(8.92, 19.92, -34.84)
CIE-LCHlch(8.92, 40.13, 299.76°)
OKLaboklab(22.29% 0.0009 -0.1008)
OKLCHoklch(22.29% 0.101 270.5)
XYZxyz(1.5701, 0.9916, 6.4107)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1249 #49430C
analogous
#0C3149 #0C1249 #250C49
triadic
#0C1249 #490C12 #12490C
tetradic
#0C1249 #490C31 #49430C #0C4925
square
#0C1249 #490C31 #49430C #0C4925
split-complementary
#0C1249 #49250C #31490C
monochromatic
#04061A #04061A #0C1249 #151F7E #1D2CB2

Accessibility & contrast

On white

17.52
#0C1249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C1249 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1249
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1249#FFFFFF#000000##FFFFFF
##0C12491.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1249;
/* rgb */ color: rgb(12, 18, 73);
/* oklch */ color: oklch(22.3% 0.101 270.5);
Tailwind
colors: {
  custom: {
    50: '#574f7c',
    500: '#0c1249',
    950: '#000000',
  },
}
SCSS
$custom: #0c1249;
$custom-light: #574f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1249",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 234.098,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.22293,
    "c": 0.10081,
    "h": 270.5
  },
  "luminance": 0.00992
}

Semantic roles & 50–950 ramp

primary
#0C1249
secondary
#857C2C
accent
#DD39EE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #0C1249

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

Preview Lab → · Contrast checker → · Palette generator →

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