#0C0232#0C0232

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

Color values

HEX#0C0232
RGBrgb(12, 2, 50)
HSLhsl(253, 92%, 10%)
HSVhsv(253, 96%, 20%)
CMYKcmyk(76%, 96%, 0%, 80.4%)
CIE-LABlab(3.18, 16.98, -27.64)
CIE-LCHlch(3.18, 32.44, 301.56°)
OKLaboklab(16.29% 0.0189 -0.0874)
OKLCHoklch(16.29% 0.089 282.2)
XYZxyz(0.7489, 0.3518, 3.0454)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0232 #283202
analogous
#021032 #0C0232 #240232
triadic
#0C0232 #320C02 #02320C
tetradic
#0C0232 #320210 #283202 #023224
square
#0C0232 #320210 #283202 #023224
split-complementary
#0C0232 #322402 #103202
monochromatic
#07011D #07011D #0C0232 #1A046D #2807A8

Accessibility & contrast

On white

19.62
#0C0232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0C0232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0232
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0232#FFFFFF#000000##FFFFFF
##0C02321.0019.621.0719.62
#FFFFFF19.621.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D33
Deuteranopia (green-blind)
#000A31
Tritanopia (blue-blind)
#00101A
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c0232;
/* rgb */ color: rgb(12, 2, 50);
/* oklch */ color: oklch(16.3% 0.089 282.2);
Tailwind
colors: {
  custom: {
    50: '#4f476a',
    500: '#0c0232',
    950: '#000000',
  },
}
SCSS
$custom: #0c0232;
$custom-light: #4f476a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0232",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 252.5,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16294,
    "c": 0.08939,
    "h": 282.2
  },
  "luminance": 0.00352
}

Semantic roles & 50–950 ramp

primary
#0C0232
secondary
#637619
accent
#FF29D2
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0232

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

Preview Lab → · Contrast checker → · Palette generator →

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