#0C0641#0C0641

#0C0641 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.2% C 0.104 H 275.3°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#0C0641
RGBrgb(12, 6, 65)
HSLhsl(246, 83%, 14%)
HSVhsv(246, 91%, 25%)
CMYKcmyk(81.5%, 90.8%, 0%, 74.5%)
CIE-LABlab(5.33, 23.53, -35.09)
CIE-LCHlch(5.33, 42.25, 303.84°)
OKLaboklab(19.18% 0.0096 -0.1033)
OKLCHoklch(19.18% 0.104 275.3)
XYZxyz(1.1706, 0.5900, 5.0522)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0641 #3B4106
analogous
#061E41 #0C0641 #2A0641
triadic
#0C0641 #410C06 #06410C
tetradic
#0C0641 #41061E #3B4106 #06412A
square
#0C0641 #41061E #3B4106 #06412A
split-complementary
#0C0641 #412A06 #1E4106
monochromatic
#05031C #05031C #0C0641 #160B79 #2110B1

Accessibility & contrast

On white

18.78
#0C0641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#0C0641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0641
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0641#FFFFFF#000000##FFFFFF
##0C06411.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001443
Deuteranopia (green-blind)
#000F40
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c0641;
/* rgb */ color: rgb(12, 6, 65);
/* oklch */ color: oklch(19.2% 0.104 275.3);
Tailwind
colors: {
  custom: {
    50: '#554876',
    500: '#0c0641',
    950: '#000000',
  },
}
SCSS
$custom: #0c0641;
$custom-light: #554876;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0641",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 246.102,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19185,
    "c": 0.10375,
    "h": 275.3
  },
  "luminance": 0.0059
}

Semantic roles & 50–950 ramp

primary
#0C0641
secondary
#778122
accent
#F92EE5
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C0641

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

Preview Lab → · Contrast checker → · Palette generator →

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