#0C0C41#0C0C41

#0C0C41 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.2% C 0.097 H 273.6°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#0C0C41
RGBrgb(12, 12, 65)
HSLhsl(240, 69%, 15%)
HSVhsv(240, 82%, 25%)
CMYKcmyk(81.5%, 81.5%, 0%, 74.5%)
CIE-LABlab(6.53, 20.51, -33.13)
CIE-LCHlch(6.53, 38.97, 301.76°)
OKLaboklab(20.22% 0.006 -0.0963)
OKLCHoklch(20.22% 0.097 273.6)
XYZxyz(1.2369, 0.7226, 5.0743)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0C41 #41410C
analogous
#0C2641 #0C0C41 #260C41
triadic
#0C0C41 #410C0C #0C410C
tetradic
#0C0C41 #410C26 #41410C #0C4126
square
#0C0C41 #410C26 #41410C #0C4126
split-complementary
#0C0C41 #41260C #26410C
monochromatic
#05051A #05051A #0C0C41 #161675 #1F1FA8

Accessibility & contrast

On white

18.35
#0C0C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0C0C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0C41
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0C41#FFFFFF#000000##FFFFFF
##0C0C411.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001240
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c0c41;
/* rgb */ color: rgb(12, 12, 65);
/* oklch */ color: oklch(20.2% 0.097 273.6);
Tailwind
colors: {
  custom: {
    50: '#554b76',
    500: '#0c0c41',
    950: '#000000',
  },
}
SCSS
$custom: #0c0c41;
$custom-light: #554b76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0c41",
  "rgb": {
    "r": 12,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 240,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20218,
    "c": 0.09652,
    "h": 273.6
  },
  "luminance": 0.00723
}

Semantic roles & 50–950 ramp

primary
#0C0C41
secondary
#7D7D2C
accent
#EC3CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0C41

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

Preview Lab → · Contrast checker → · Palette generator →

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