#0C0331#0C0331

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

Color values

HEX#0C0331
RGBrgb(12, 3, 49)
HSLhsl(252, 88%, 10%)
HSVhsv(252, 94%, 19%)
CMYKcmyk(75.5%, 93.9%, 0%, 80.8%)
CIE-LABlab(3.30, 16.04, -26.71)
CIE-LCHlch(3.30, 31.15, 300.98°)
OKLaboklab(16.4% 0.0181 -0.0842)
OKLCHoklch(16.4% 0.086 282.2)
XYZxyz(0.7384, 0.3650, 2.9367)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0331 #283103
analogous
#031131 #0C0331 #230331
triadic
#0C0331 #310C03 #03310C
tetradic
#0C0331 #310311 #283103 #033123
square
#0C0331 #310311 #283103 #033123
split-complementary
#0C0331 #312303 #113103
monochromatic
#07021D #07021D #0C0331 #1A076B #280AA4

Accessibility & contrast

On white

19.57
#0C0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0331
19.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0331#FFFFFF#000000##FFFFFF
##0C03311.0019.571.0719.57
#FFFFFF19.571.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D32
Deuteranopia (green-blind)
#000A30
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0c0331;
/* rgb */ color: rgb(12, 3, 49);
/* oklch */ color: oklch(16.4% 0.086 282.2);
Tailwind
colors: {
  custom: {
    50: '#4f4769',
    500: '#0c0331',
    950: '#000000',
  },
}
SCSS
$custom: #0c0331;
$custom-light: #4f4769;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0331",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 251.739,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16401,
    "c": 0.08612,
    "h": 282.2
  },
  "luminance": 0.00365
}

Semantic roles & 50–950 ramp

primary
#0C0331
secondary
#63741B
accent
#FF29D5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0331

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

Preview Lab → · Contrast checker → · Palette generator →

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