#0C0635#0C0635

#0C0635 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.087 H 278.9°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#0C0635
RGBrgb(12, 6, 53)
HSLhsl(248, 80%, 12%)
HSVhsv(248, 89%, 21%)
CMYKcmyk(77.4%, 88.7%, 0%, 79.2%)
CIE-LABlab(4.20, 17.07, -28.22)
CIE-LCHlch(4.20, 32.98, 301.17°)
OKLaboklab(17.61% 0.0135 -0.0857)
OKLCHoklch(17.61% 0.087 278.9)
XYZxyz(0.8591, 0.4654, 3.4120)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0635 #2F3506
analogous
#061835 #0C0635 #240635
triadic
#0C0635 #350C06 #06350C
tetradic
#0C0635 #350618 #2F3506 #063524
square
#0C0635 #350618 #2F3506 #063524
split-complementary
#0C0635 #352406 #183506
monochromatic
#06031B #06031B #0C0635 #180C6C #2512A3

Accessibility & contrast

On white

19.21
#0C0635 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C0635 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0635
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0635#FFFFFF#000000##FFFFFF
##0C06351.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001036
Deuteranopia (green-blind)
#000D34
Tritanopia (blue-blind)
#00131D
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c0635;
/* rgb */ color: rgb(12, 6, 53);
/* oklch */ color: oklch(17.6% 0.087 278.9);
Tailwind
colors: {
  custom: {
    50: '#50486d',
    500: '#0c0635',
    950: '#000000',
  },
}
SCSS
$custom: #0c0635;
$custom-light: #50486d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0635",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 53
  },
  "hsl": {
    "h": 247.66,
    "s": 79.661,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17606,
    "c": 0.08671,
    "h": 278.9
  },
  "luminance": 0.00465
}

Semantic roles & 50–950 ramp

primary
#0C0635
secondary
#6B7521
accent
#F632DD
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0635

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

Preview Lab → · Contrast checker → · Palette generator →

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