#0C0233#0C0233

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

Color values

HEX#0C0233
RGBrgb(12, 2, 51)
HSLhsl(252, 92%, 10%)
HSVhsv(252, 96%, 20%)
CMYKcmyk(76.5%, 96.1%, 0%, 80%)
CIE-LABlab(3.26, 17.53, -28.26)
CIE-LCHlch(3.26, 33.26, 301.82°)
OKLaboklab(16.43% 0.0184 -0.0888)
OKLCHoklch(16.43% 0.091 281.7)
XYZxyz(0.7707, 0.3605, 3.1603)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0233 #293302
analogous
#021033 #0C0233 #240233
triadic
#0C0233 #330C02 #02330C
tetradic
#0C0233 #330210 #293302 #023324
square
#0C0233 #330210 #293302 #023324
split-complementary
#0C0233 #332402 #103302
monochromatic
#07011D #07011D #0C0233 #1A046E #2807A9

Accessibility & contrast

On white

19.59
#0C0233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0233
19.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0233#FFFFFF#000000##FFFFFF
##0C02331.0019.591.0719.59
#FFFFFF19.591.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0233;
/* rgb */ color: rgb(12, 2, 51);
/* oklch */ color: oklch(16.4% 0.091 281.7);
Tailwind
colors: {
  custom: {
    50: '#4f476b',
    500: '#0c0233',
    950: '#000000',
  },
}
SCSS
$custom: #0c0233;
$custom-light: #4f476b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0233",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 51
  },
  "hsl": {
    "h": 252.245,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.16434,
    "c": 0.09072,
    "h": 281.7
  },
  "luminance": 0.00361
}

Semantic roles & 50–950 ramp

primary
#0C0233
secondary
#64771A
accent
#FF29D3
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0233

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

Preview Lab → · Contrast checker → · Palette generator →

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