#0C0638#0C0638

#0C0638 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.091 H 277.9°. Best body text is #FFFFFF at 19.11:1 contrast (WCAG AA passes).

Color values

HEX#0C0638
RGBrgb(12, 6, 56)
HSLhsl(247, 81%, 12%)
HSVhsv(247, 89%, 22%)
CMYKcmyk(78.6%, 89.3%, 0%, 78%)
CIE-LABlab(4.46, 18.76, -30.01)
CIE-LCHlch(4.46, 35.39, 302.01°)
OKLaboklab(17.99% 0.0125 -0.0902)
OKLCHoklch(17.99% 0.091 277.9)
XYZxyz(0.9303, 0.4939, 3.7869)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0638 #323806
analogous
#061938 #0C0638 #250638
triadic
#0C0638 #380C06 #06380C
tetradic
#0C0638 #380619 #323806 #063825
square
#0C0638 #380619 #323806 #063825
split-complementary
#0C0638 #382506 #193806
monochromatic
#06031C #06031C #0C0638 #180C6F #2412A7

Accessibility & contrast

On white

19.11
#0C0638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0638
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0638#FFFFFF#000000##FFFFFF
##0C06381.0019.111.1019.11
#FFFFFF19.111.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0638;
/* rgb */ color: rgb(12, 6, 56);
/* oklch */ color: oklch(18.0% 0.091 277.9);
Tailwind
colors: {
  custom: {
    50: '#51486f',
    500: '#0c0638',
    950: '#000000',
  },
}
SCSS
$custom: #0c0638;
$custom-light: #51486f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0638",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 247.2,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.17992,
    "c": 0.09108,
    "h": 277.9
  },
  "luminance": 0.00494
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0C0638

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

Preview Lab → · Contrast checker → · Palette generator →

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