#0C0640#0C0640

#0C0640 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.1% C 0.102 H 275.6°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#0C0640
RGBrgb(12, 6, 64)
HSLhsl(246, 83%, 14%)
HSVhsv(246, 91%, 25%)
CMYKcmyk(81.2%, 90.6%, 0%, 74.9%)
CIE-LABlab(5.23, 23.03, -34.55)
CIE-LCHlch(5.23, 41.52, 303.68°)
OKLaboklab(19.05% 0.01 -0.1019)
OKLCHoklch(19.05% 0.102 275.6)
XYZxyz(1.1419, 0.5785, 4.9010)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0640 #3A4006
analogous
#061D40 #0C0640 #290640
triadic
#0C0640 #400C06 #06400C
tetradic
#0C0640 #40061D #3A4006 #064029
square
#0C0640 #40061D #3A4006 #064029
split-complementary
#0C0640 #402906 #1D4006
monochromatic
#05031C #05031C #0C0640 #160B78 #2110B0

Accessibility & contrast

On white

18.82
#0C0640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0640
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0640#FFFFFF#000000##FFFFFF
##0C06401.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#000F3F
Tritanopia (blue-blind)
#001823
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c0640;
/* rgb */ color: rgb(12, 6, 64);
/* oklch */ color: oklch(19.1% 0.102 275.6);
Tailwind
colors: {
  custom: {
    50: '#554876',
    500: '#0c0640',
    950: '#000000',
  },
}
SCSS
$custom: #0c0640;
$custom-light: #554876;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0640",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 246.207,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.19051,
    "c": 0.10237,
    "h": 275.6
  },
  "luminance": 0.00579
}

Semantic roles & 50–950 ramp

primary
#0C0640
secondary
#768022
accent
#F92FE4
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C0640

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

Preview Lab → · Contrast checker → · Palette generator →

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