#0C0236#0C0236

#0C0236 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.9% C 0.095 H 280.3°. Best body text is #FFFFFF at 19.49:1 contrast (WCAG AA passes).

Color values

HEX#0C0236
RGBrgb(12, 2, 54)
HSLhsl(252, 93%, 11%)
HSVhsv(252, 96%, 21%)
CMYKcmyk(77.8%, 96.3%, 0%, 78.8%)
CIE-LABlab(3.50, 19.27, -30.09)
CIE-LCHlch(3.50, 35.73, 302.63°)
OKLaboklab(16.86% 0.017 -0.0932)
OKLCHoklch(16.86% 0.095 280.3)
XYZxyz(0.8390, 0.3879, 3.5200)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0236 #2C3602
analogous
#021236 #0C0236 #260236
triadic
#0C0236 #360C02 #02360C
tetradic
#0C0236 #360212 #2C3602 #023626
square
#0C0236 #360212 #2C3602 #023626
split-complementary
#0C0236 #362602 #123602
monochromatic
#07011E #07011E #0C0236 #190471 #2606AC

Accessibility & contrast

On white

19.49
#0C0236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0C0236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0236
19.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0236#FFFFFF#000000##FFFFFF
##0C02361.0019.491.0819.49
#FFFFFF19.491.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E37
Deuteranopia (green-blind)
#000A35
Tritanopia (blue-blind)
#00111C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c0236;
/* rgb */ color: rgb(12, 2, 54);
/* oklch */ color: oklch(16.9% 0.095 280.3);
Tailwind
colors: {
  custom: {
    50: '#50476e',
    500: '#0c0236',
    950: '#000000',
  },
}
SCSS
$custom: #0c0236;
$custom-light: #50476e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0236",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 54
  },
  "hsl": {
    "h": 251.538,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.16858,
    "c": 0.09471,
    "h": 280.3
  },
  "luminance": 0.00388
}

Semantic roles & 50–950 ramp

primary
#0C0236
secondary
#677A1A
accent
#FF29D6
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0236

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

Preview Lab → · Contrast checker → · Palette generator →

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