#0C0432#0C0432

#0C0432 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.8% C 0.086 H 281.1°. Best body text is #FFFFFF at 19.46:1 contrast (WCAG AA passes).

Color values

HEX#0C0432
RGBrgb(12, 4, 50)
HSLhsl(250, 85%, 11%)
HSVhsv(250, 92%, 20%)
CMYKcmyk(76%, 92%, 0%, 80.4%)
CIE-LABlab(3.57, 16.18, -27.02)
CIE-LCHlch(3.57, 31.49, 300.92°)
OKLaboklab(16.77% 0.0166 -0.0841)
OKLCHoklch(16.77% 0.086 281.1)
XYZxyz(0.7706, 0.3952, 3.0527)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0432 #2A3204
analogous
#041332 #0C0432 #230432
triadic
#0C0432 #320C04 #04320C
tetradic
#0C0432 #320413 #2A3204 #043223
square
#0C0432 #320413 #2A3204 #043223
split-complementary
#0C0432 #322304 #133204
monochromatic
#07021C #07021C #0C0432 #1A096B #270DA3

Accessibility & contrast

On white

19.46
#0C0432 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0432
19.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0432#FFFFFF#000000##FFFFFF
##0C04321.0019.461.0819.46
#FFFFFF19.461.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E33
Deuteranopia (green-blind)
#000B31
Tritanopia (blue-blind)
#00111A
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c0432;
/* rgb */ color: rgb(12, 4, 50);
/* oklch */ color: oklch(16.8% 0.086 281.1);
Tailwind
colors: {
  custom: {
    50: '#4f486a',
    500: '#0c0432',
    950: '#000000',
  },
}
SCSS
$custom: #0c0432;
$custom-light: #4f486a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0432",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 50
  },
  "hsl": {
    "h": 250.435,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16773,
    "c": 0.0857,
    "h": 281.1
  },
  "luminance": 0.00395
}

Semantic roles & 50–950 ramp

primary
#0C0432
secondary
#65741D
accent
#FB2CD7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0432

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

Preview Lab → · Contrast checker → · Palette generator →

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