#0C0D46#0C0D46

#0C0D46 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.0% C 0.103 H 272.5°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#0C0D46
RGBrgb(12, 13, 70)
HSLhsl(239, 71%, 16%)
HSVhsv(239, 83%, 27%)
CMYKcmyk(82.9%, 81.4%, 0%, 72.5%)
CIE-LABlab(7.30, 22.16, -35.40)
CIE-LCHlch(7.30, 41.77, 302.04°)
OKLaboklab(21.01% 0.0045 -0.1026)
OKLCHoklch(21.01% 0.103 272.5)
XYZxyz(1.4007, 0.8081, 5.8753)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D46 #46450C
analogous
#0C2A46 #0C0D46 #280C46
triadic
#0C0D46 #460C0D #0D460C
tetradic
#0C0D46 #460C2A #46450C #0C4628
square
#0C0D46 #460C2A #46450C #0C4628
split-complementary
#0C0D46 #46280C #2A460C
monochromatic
#04051A #04051A #0C0D46 #15177A #1E20AE

Accessibility & contrast

On white

18.08
#0C0D46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C0D46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D46
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D46#FFFFFF#000000##FFFFFF
##0C0D461.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001345
Tritanopia (blue-blind)
#001D28
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c0d46;
/* rgb */ color: rgb(12, 13, 70);
/* oklch */ color: oklch(21.0% 0.103 272.5);
Tailwind
colors: {
  custom: {
    50: '#564c7a',
    500: '#0c0d46',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d46;
$custom-light: #564c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d46",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 70
  },
  "hsl": {
    "h": 238.966,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21005,
    "c": 0.10266,
    "h": 272.5
  },
  "luminance": 0.00808
}

Semantic roles & 50–950 ramp

primary
#0C0D46
secondary
#82802C
accent
#EA3AED
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0D46

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

Preview Lab → · Contrast checker → · Palette generator →

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