#0C023B#0C023B

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

Color values

HEX#0C023B
RGBrgb(12, 2, 59)
HSLhsl(251, 93%, 12%)
HSVhsv(251, 97%, 23%)
CMYKcmyk(79.7%, 96.6%, 0%, 76.9%)
CIE-LABlab(3.95, 22.18, -33.02)
CIE-LCHlch(3.95, 39.78, 303.89°)
OKLaboklab(17.57% 0.0147 -0.1002)
OKLCHoklch(17.57% 0.101 278.3)
XYZxyz(0.9625, 0.4373, 4.1705)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C023B #313B02
analogous
#02153B #0C023B #29023B
triadic
#0C023B #3B0C02 #023B0C
tetradic
#0C023B #3B0215 #313B02 #023B29
square
#0C023B #3B0215 #313B02 #023B29
split-complementary
#0C023B #3B2902 #153B02
monochromatic
#06011E #06011E #0C023B #180476 #2406B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C023B#FFFFFF#000000##FFFFFF
##0C023B1.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)
#00103D
Deuteranopia (green-blind)
#000C3A
Tritanopia (blue-blind)
#00131F
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0c023b;
/* rgb */ color: rgb(12, 2, 59);
/* oklch */ color: oklch(17.6% 0.101 278.3);
Tailwind
colors: {
  custom: {
    50: '#534672',
    500: '#0c023b',
    950: '#000000',
  },
}
SCSS
$custom: #0c023b;
$custom-light: #534672;
$custom-dark: #000000;
JSON
{
  "hex": "#0c023b",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 250.526,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.17574,
    "c": 0.10127,
    "h": 278.3
  },
  "luminance": 0.00437
}

Semantic roles & 50–950 ramp

primary
#0C023B
secondary
#6D7E1A
accent
#FF29D9
background
#F5F3F6
surface
#E9E5EC
border
#C5C1C7
text
#030008
muted
#78777B

Preview Lab

Preview with #0C023B

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

Preview Lab → · Contrast checker → · Palette generator →

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