#0C0C46#0C0C46

#0C0C46 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.104 H 272.8°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#0C0C46
RGBrgb(12, 12, 70)
HSLhsl(240, 71%, 16%)
HSVhsv(240, 83%, 27%)
CMYKcmyk(82.9%, 82.9%, 0%, 72.5%)
CIE-LABlab(7.07, 22.76, -35.78)
CIE-LCHlch(7.07, 42.40, 302.46°)
OKLaboklab(20.83% 0.005 -0.1037)
OKLCHoklch(20.83% 0.104 272.8)
XYZxyz(1.3882, 0.7832, 5.8712)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0C46 #46460C
analogous
#0C2946 #0C0C46 #290C46
triadic
#0C0C46 #460C0C #0C460C
tetradic
#0C0C46 #460C29 #46460C #0C4629
square
#0C0C46 #460C29 #46460C #0C4629
split-complementary
#0C0C46 #46290C #29460C
monochromatic
#04041A #04041A #0C0C46 #15157A #1E1EAE

Accessibility & contrast

On white

18.16
#0C0C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0C46
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0C46#FFFFFF#000000##FFFFFF
##0C0C461.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0c46;
/* rgb */ color: rgb(12, 12, 70);
/* oklch */ color: oklch(20.8% 0.104 272.8);
Tailwind
colors: {
  custom: {
    50: '#564b7a',
    500: '#0c0c46',
    950: '#000000',
  },
}
SCSS
$custom: #0c0c46;
$custom-light: #564b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0c46",
  "rgb": {
    "r": 12,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 240,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.20833,
    "c": 0.10384,
    "h": 272.8
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#0C0C46
secondary
#82822C
accent
#ED3AED
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0C46

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

Preview Lab → · Contrast checker → · Palette generator →

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