#0C0339#0C0339

#0C0339 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.5% C 0.097 H 278.7°. Best body text is #FFFFFF at 19.31:1 contrast (WCAG AA passes).

Color values

HEX#0C0339
RGBrgb(12, 3, 57)
HSLhsl(250, 90%, 12%)
HSVhsv(250, 95%, 22%)
CMYKcmyk(78.9%, 94.7%, 0%, 77.6%)
CIE-LABlab(3.96, 20.61, -31.54)
CIE-LCHlch(3.96, 37.68, 303.16°)
OKLaboklab(17.5% 0.0147 -0.0959)
OKLCHoklch(17.5% 0.097 278.7)
XYZxyz(0.9225, 0.4386, 3.9061)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0339 #303903
analogous
#031539 #0C0339 #270339
triadic
#0C0339 #390C03 #03390C
tetradic
#0C0339 #390315 #303903 #033927
square
#0C0339 #390315 #303903 #033927
split-complementary
#0C0339 #392703 #153903
monochromatic
#06021D #06021D #0C0339 #180673 #2409AD

Accessibility & contrast

On white

19.31
#0C0339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C0339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0339
19.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0339#FFFFFF#000000##FFFFFF
##0C03391.0019.311.0919.31
#FFFFFF19.311.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00103A
Deuteranopia (green-blind)
#000C38
Tritanopia (blue-blind)
#00131E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0c0339;
/* rgb */ color: rgb(12, 3, 57);
/* oklch */ color: oklch(17.5% 0.097 278.7);
Tailwind
colors: {
  custom: {
    50: '#524770',
    500: '#0c0339',
    950: '#000000',
  },
}
SCSS
$custom: #0c0339;
$custom-light: #524770;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0339",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 250,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.17503,
    "c": 0.09705,
    "h": 278.7
  },
  "luminance": 0.00439
}

Semantic roles & 50–950 ramp

primary
#0C0339
secondary
#6C7C1C
accent
#FF29DB
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#030007
muted
#78777A

Preview Lab

Preview with #0C0339

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

Preview Lab → · Contrast checker → · Palette generator →

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