#0C0230#0C0230

#0C0230 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.0% C 0.087 H 283.2°. Best body text is #FFFFFF at 19.68:1 contrast (WCAG AA passes).

Color values

HEX#0C0230
RGBrgb(12, 2, 48)
HSLhsl(253, 92%, 10%)
HSVhsv(253, 96%, 19%)
CMYKcmyk(75%, 95.8%, 0%, 81.2%)
CIE-LABlab(3.03, 15.91, -26.39)
CIE-LCHlch(3.03, 30.82, 301.08°)
OKLaboklab(16.01% 0.0198 -0.0844)
OKLCHoklch(16.01% 0.087 283.2)
XYZxyz(0.7067, 0.3349, 2.8231)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0230 #263002
analogous
#020F30 #0C0230 #230230
triadic
#0C0230 #300C02 #02300C
tetradic
#0C0230 #30020F #263002 #023023
square
#0C0230 #30020F #263002 #023023
split-complementary
#0C0230 #302302 #0F3002
monochromatic
#07011D #07011D #0C0230 #1B046B #2907A6

Accessibility & contrast

On white

19.68
#0C0230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0230
19.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0230#FFFFFF#000000##FFFFFF
##0C02301.0019.681.0719.68
#FFFFFF19.681.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C31
Deuteranopia (green-blind)
#00092F
Tritanopia (blue-blind)
#000F18
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c0230;
/* rgb */ color: rgb(12, 2, 48);
/* oklch */ color: oklch(16.0% 0.087 283.2);
Tailwind
colors: {
  custom: {
    50: '#4e4769',
    500: '#0c0230',
    950: '#000000',
  },
}
SCSS
$custom: #0c0230;
$custom-light: #4e4769;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0230",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 48
  },
  "hsl": {
    "h": 253.043,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16015,
    "c": 0.0867,
    "h": 283.2
  },
  "luminance": 0.00335
}

Semantic roles & 50–950 ramp

primary
#0C0230
secondary
#617519
accent
#FF29D0
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0230

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

Preview Lab → · Contrast checker → · Palette generator →

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