#0C0434#0C0434

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

Color values

HEX#0C0434
RGBrgb(12, 4, 52)
HSLhsl(250, 86%, 11%)
HSVhsv(250, 92%, 20%)
CMYKcmyk(76.9%, 92.3%, 0%, 79.6%)
CIE-LABlab(3.73, 17.30, -28.24)
CIE-LCHlch(3.73, 33.12, 301.48°)
OKLaboklab(17.04% 0.0158 -0.0871)
OKLCHoklch(17.04% 0.089 280.3)
XYZxyz(0.8147, 0.4129, 3.2849)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0434 #2C3404
analogous
#041434 #0C0434 #240434
triadic
#0C0434 #340C04 #04340C
tetradic
#0C0434 #340414 #2C3404 #043424
square
#0C0434 #340414 #2C3404 #043424
split-complementary
#0C0434 #342404 #143404
monochromatic
#07021C #07021C #0C0434 #19086D #260DA6

Accessibility & contrast

On white

19.40
#0C0434 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0434
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0434#FFFFFF#000000##FFFFFF
##0C04341.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F35
Deuteranopia (green-blind)
#000B33
Tritanopia (blue-blind)
#00121C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c0434;
/* rgb */ color: rgb(12, 4, 52);
/* oklch */ color: oklch(17.0% 0.089 280.3);
Tailwind
colors: {
  custom: {
    50: '#50486c',
    500: '#0c0434',
    950: '#000000',
  },
}
SCSS
$custom: #0c0434;
$custom-light: #50486c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0434",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 52
  },
  "hsl": {
    "h": 250,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.17039,
    "c": 0.08853,
    "h": 280.3
  },
  "luminance": 0.00413
}

Semantic roles & 50–950 ramp

primary
#0C0434
secondary
#67761E
accent
#FC2CD9
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0434

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

Preview Lab → · Contrast checker → · Palette generator →

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