#0C043B#0C043B

#0C043B is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.098 H 277.7°. Best body text is #FFFFFF at 19.16:1 contrast (WCAG AA passes).

Color values

HEX#0C043B
RGBrgb(12, 4, 59)
HSLhsl(249, 87%, 12%)
HSVhsv(249, 93%, 23%)
CMYKcmyk(79.7%, 93.2%, 0%, 76.9%)
CIE-LABlab(4.34, 21.30, -32.38)
CIE-LCHlch(4.34, 38.76, 303.33°)
OKLaboklab(17.99% 0.0131 -0.0974)
OKLCHoklch(17.99% 0.098 277.7)
XYZxyz(0.9842, 0.4807, 4.1777)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C043B #333B04
analogous
#04183B #0C043B #27043B
triadic
#0C043B #3B0C04 #043B0C
tetradic
#0C043B #3B0418 #333B04 #043B27
square
#0C043B #3B0418 #333B04 #043B27
split-complementary
#0C043B #3B2704 #183B04
monochromatic
#06021D #06021D #0C043B #180874 #230CAE

Accessibility & contrast

On white

19.16
#0C043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C043B
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C043B#FFFFFF#000000##FFFFFF
##0C043B1.0019.161.1019.16
#FFFFFF19.161.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113D
Deuteranopia (green-blind)
#000D3A
Tritanopia (blue-blind)
#001520
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c043b;
/* rgb */ color: rgb(12, 4, 59);
/* oklch */ color: oklch(18.0% 0.098 277.7);
Tailwind
colors: {
  custom: {
    50: '#534772',
    500: '#0c043b',
    950: '#000000',
  },
}
SCSS
$custom: #0c043b;
$custom-light: #534772;
$custom-dark: #000000;
JSON
{
  "hex": "#0c043b",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 248.727,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.17988,
    "c": 0.09824,
    "h": 277.7
  },
  "luminance": 0.00481
}

Semantic roles & 50–950 ramp

primary
#0C043B
secondary
#6F7D1E
accent
#FD2ADF
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030008
muted
#78777B

Preview Lab

Preview with #0C043B

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

Preview Lab → · Contrast checker → · Palette generator →

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