#0C023A#0C023A

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

Color values

HEX#0C023A
RGBrgb(12, 2, 58)
HSLhsl(251, 93%, 12%)
HSVhsv(251, 97%, 23%)
CMYKcmyk(79.3%, 96.6%, 0%, 77.3%)
CIE-LABlab(3.86, 21.61, -32.44)
CIE-LCHlch(3.86, 38.98, 303.67°)
OKLaboklab(17.43% 0.0151 -0.0988)
OKLCHoklch(17.43% 0.1 278.7)
XYZxyz(0.9368, 0.4270, 4.0352)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C023A #303A02
analogous
#02143A #0C023A #28023A
triadic
#0C023A #3A0C02 #023A0C
tetradic
#0C023A #3A0214 #303A02 #023A28
square
#0C023A #3A0214 #303A02 #023A28
split-complementary
#0C023A #3A2802 #143A02
monochromatic
#06011E #06011E #0C023A #180475 #2406B0

Accessibility & contrast

On white

19.35
#0C023A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C023A
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C023A#FFFFFF#000000##FFFFFF
##0C023A1.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c023a;
/* rgb */ color: rgb(12, 2, 58);
/* oklch */ color: oklch(17.4% 0.100 278.7);
Tailwind
colors: {
  custom: {
    50: '#524671',
    500: '#0c023a',
    950: '#000000',
  },
}
SCSS
$custom: #0c023a;
$custom-light: #524671;
$custom-dark: #000000;
JSON
{
  "hex": "#0c023a",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 58
  },
  "hsl": {
    "h": 250.714,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.1743,
    "c": 0.09996,
    "h": 278.7
  },
  "luminance": 0.00427
}

Semantic roles & 50–950 ramp

primary
#0C023A
secondary
#6C7D1A
accent
#FF29D9
background
#F4F3F6
surface
#E8E5EC
border
#C4C1C7
text
#030008
muted
#78777B

Preview Lab

Preview with #0C023A

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

Preview Lab → · Contrast checker → · Palette generator →

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