#0C0637#0C0637

#0C0637 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.090 H 278.2°. Best body text is #FFFFFF at 19.15:1 contrast (WCAG AA passes).

Color values

HEX#0C0637
RGBrgb(12, 6, 55)
HSLhsl(247, 80%, 12%)
HSVhsv(247, 89%, 22%)
CMYKcmyk(78.2%, 89.1%, 0%, 78.4%)
CIE-LABlab(4.37, 18.20, -29.42)
CIE-LCHlch(4.37, 34.59, 301.75°)
OKLaboklab(17.86% 0.0129 -0.0887)
OKLCHoklch(17.86% 0.09 278.2)
XYZxyz(0.9061, 0.4842, 3.6594)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0637 #313706
analogous
#061937 #0C0637 #250637
triadic
#0C0637 #370C06 #06370C
tetradic
#0C0637 #370619 #313706 #063725
square
#0C0637 #370619 #313706 #063725
split-complementary
#0C0637 #372506 #193706
monochromatic
#06031C #06031C #0C0637 #180C6E #2412A5

Accessibility & contrast

On white

19.15
#0C0637 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0C0637 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0637
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0637#FFFFFF#000000##FFFFFF
##0C06371.0019.151.1019.15
#FFFFFF19.151.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001138
Deuteranopia (green-blind)
#000D36
Tritanopia (blue-blind)
#00141E
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c0637;
/* rgb */ color: rgb(12, 6, 55);
/* oklch */ color: oklch(17.9% 0.090 278.2);
Tailwind
colors: {
  custom: {
    50: '#51486e',
    500: '#0c0637',
    950: '#000000',
  },
}
SCSS
$custom: #0c0637;
$custom-light: #51486e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0637",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 55
  },
  "hsl": {
    "h": 247.347,
    "s": 80.328,
    "l": 11.961
  },
  "oklch": {
    "l": 0.17863,
    "c": 0.08963,
    "h": 278.2
  },
  "luminance": 0.00484
}

Semantic roles & 50–950 ramp

primary
#0C0637
secondary
#6D7721
accent
#F731DF
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0637

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

Preview Lab → · Contrast checker → · Palette generator →

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