#0C043C#0C043C

#0C043C is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.100 H 277.3°. Best body text is #FFFFFF at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#0C043C
RGBrgb(12, 4, 60)
HSLhsl(249, 88%, 13%)
HSVhsv(249, 93%, 24%)
CMYKcmyk(80%, 93.3%, 0%, 76.5%)
CIE-LABlab(4.44, 21.85, -32.96)
CIE-LCHlch(4.44, 39.54, 303.55°)
OKLaboklab(18.13% 0.0127 -0.0988)
OKLCHoklch(18.13% 0.1 277.3)
XYZxyz(1.0104, 0.4911, 4.3156)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C043C #343C04
analogous
#04183C #0C043C #28043C
triadic
#0C043C #3C0C04 #043C0C
tetradic
#0C043C #3C0418 #343C04 #043C28
square
#0C043C #3C0418 #343C04 #043C28
split-complementary
#0C043C #3C2804 #183C04
monochromatic
#06021D #06021D #0C043C #170875 #230CAF

Accessibility & contrast

On white

19.12
#0C043C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0C043C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C043C
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C043C#FFFFFF#000000##FFFFFF
##0C043C1.0019.121.1019.12
#FFFFFF19.121.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123E
Deuteranopia (green-blind)
#000D3B
Tritanopia (blue-blind)
#001520
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c043c;
/* rgb */ color: rgb(12, 4, 60);
/* oklch */ color: oklch(18.1% 0.100 277.3);
Tailwind
colors: {
  custom: {
    50: '#534772',
    500: '#0c043c',
    950: '#000000',
  },
}
SCSS
$custom: #0c043c;
$custom-light: #534772;
$custom-dark: #000000;
JSON
{
  "hex": "#0c043c",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 60
  },
  "hsl": {
    "h": 248.571,
    "s": 87.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.18126,
    "c": 0.0996,
    "h": 277.3
  },
  "luminance": 0.00491
}

Semantic roles & 50–950 ramp

primary
#0C043C
secondary
#707E1E
accent
#FE2ADF
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C043C

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

Preview Lab → · Contrast checker → · Palette generator →

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