#0C043F#0C043F

#0C043F is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.5% C 0.104 H 276.4°. Best body text is #FFFFFF at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#0C043F
RGBrgb(12, 4, 63)
HSLhsl(248, 88%, 13%)
HSVhsv(248, 94%, 25%)
CMYKcmyk(81%, 93.7%, 0%, 75.3%)
CIE-LABlab(4.73, 23.46, -34.64)
CIE-LCHlch(4.73, 41.84, 304.11°)
OKLaboklab(18.54% 0.0116 -0.103)
OKLCHoklch(18.54% 0.104 276.4)
XYZxyz(1.0919, 0.5238, 4.7452)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C043F #373F04
analogous
#04193F #0C043F #29043F
triadic
#0C043F #3F0C04 #043F0C
tetradic
#0C043F #3F0419 #373F04 #043F29
square
#0C043F #3F0419 #373F04 #043F29
split-complementary
#0C043F #3F2904 #193F04
monochromatic
#05021D #05021D #0C043F #170879 #220BB2

Accessibility & contrast

On white

19.01
#0C043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C043F
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C043F#FFFFFF#000000##FFFFFF
##0C043F1.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001341
Deuteranopia (green-blind)
#000D3E
Tritanopia (blue-blind)
#001622
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c043f;
/* rgb */ color: rgb(12, 4, 63);
/* oklch */ color: oklch(18.5% 0.104 276.4);
Tailwind
colors: {
  custom: {
    50: '#544775',
    500: '#0c043f',
    950: '#000000',
  },
}
SCSS
$custom: #0c043f;
$custom-light: #544775;
$custom-dark: #000000;
JSON
{
  "hex": "#0c043f",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 248.136,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.18543,
    "c": 0.10365,
    "h": 276.4
  },
  "luminance": 0.00524
}

Semantic roles & 50–950 ramp

primary
#0C043F
secondary
#73801E
accent
#FE2AE1
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C043F

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

Preview Lab → · Contrast checker → · Palette generator →

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