#0C0D41#0C0D41

#0C0D41 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.4% C 0.095 H 273.2°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#0C0D41
RGBrgb(12, 13, 65)
HSLhsl(239, 69%, 15%)
HSVhsv(239, 82%, 25%)
CMYKcmyk(81.5%, 80%, 0%, 74.5%)
CIE-LABlab(6.75, 19.93, -32.76)
CIE-LCHlch(6.75, 38.35, 301.32°)
OKLaboklab(20.4% 0.0054 -0.0951)
OKLCHoklch(20.4% 0.095 273.2)
XYZxyz(1.2494, 0.7475, 5.0784)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D41 #41400C
analogous
#0C2741 #0C0D41 #250C41
triadic
#0C0D41 #410C0D #0D410C
tetradic
#0C0D41 #410C27 #41400C #0C4125
square
#0C0D41 #410C27 #41400C #0C4125
split-complementary
#0C0D41 #41250C #27410C
monochromatic
#05051A #05051A #0C0D41 #161775 #1F22A8

Accessibility & contrast

On white

18.27
#0C0D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0C0D41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D41
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D41#FFFFFF#000000##FFFFFF
##0C0D411.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0d41;
/* rgb */ color: rgb(12, 13, 65);
/* oklch */ color: oklch(20.4% 0.095 273.2);
Tailwind
colors: {
  custom: {
    50: '#554c76',
    500: '#0c0d41',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d41;
$custom-light: #554c76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d41",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 65
  },
  "hsl": {
    "h": 238.868,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.204,
    "c": 0.09526,
    "h": 273.2
  },
  "luminance": 0.00748
}

Semantic roles & 50–950 ramp

primary
#0C0D41
secondary
#7D7C2C
accent
#E83CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0D41

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

Preview Lab → · Contrast checker → · Palette generator →

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