#0C043A#0C043A

#0C043A is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.097 H 278.0°. Best body text is #FFFFFF at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#0C043A
RGBrgb(12, 4, 58)
HSLhsl(249, 87%, 12%)
HSVhsv(249, 93%, 23%)
CMYKcmyk(79.3%, 93.1%, 0%, 77.3%)
CIE-LABlab(4.25, 20.74, -31.81)
CIE-LCHlch(4.25, 37.97, 303.11°)
OKLaboklab(17.85% 0.0135 -0.0959)
OKLCHoklch(17.85% 0.097 278)
XYZxyz(0.9585, 0.4704, 4.0425)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C043A #323A04
analogous
#04173A #0C043A #27043A
triadic
#0C043A #3A0C04 #043A0C
tetradic
#0C043A #3A0417 #323A04 #043A27
square
#0C043A #3A0417 #323A04 #043A27
split-complementary
#0C043A #3A2704 #173A04
monochromatic
#06021D #06021D #0C043A #180873 #240CAD

Accessibility & contrast

On white

19.20
#0C043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C043A
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C043A#FFFFFF#000000##FFFFFF
##0C043A1.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113B
Deuteranopia (green-blind)
#000D39
Tritanopia (blue-blind)
#00141F
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c043a;
/* rgb */ color: rgb(12, 4, 58);
/* oklch */ color: oklch(17.9% 0.097 278.0);
Tailwind
colors: {
  custom: {
    50: '#524771',
    500: '#0c043a',
    950: '#000000',
  },
}
SCSS
$custom: #0c043a;
$custom-light: #524771;
$custom-dark: #000000;
JSON
{
  "hex": "#0c043a",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 248.889,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.17851,
    "c": 0.09688,
    "h": 278
  },
  "luminance": 0.0047
}

Semantic roles & 50–950 ramp

primary
#0C043A
secondary
#6E7C1E
accent
#FD2BDE
background
#F4F4F6
surface
#E8E6EC
border
#C4C2C7
text
#030008
muted
#78777B

Preview Lab

Preview with #0C043A

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

Preview Lab → · Contrast checker → · Palette generator →

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