#0C0231#0C0231

#0C0231 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.2% C 0.088 H 282.7°. Best body text is #FFFFFF at 19.65:1 contrast (WCAG AA passes).

Color values

HEX#0C0231
RGBrgb(12, 2, 49)
HSLhsl(253, 92%, 10%)
HSVhsv(253, 96%, 19%)
CMYKcmyk(75.5%, 95.9%, 0%, 80.8%)
CIE-LABlab(3.10, 16.43, -27.02)
CIE-LCHlch(3.10, 31.63, 301.31°)
OKLaboklab(16.15% 0.0194 -0.0859)
OKLCHoklch(16.15% 0.088 282.7)
XYZxyz(0.7275, 0.3433, 2.9331)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0231 #273102
analogous
#020F31 #0C0231 #240231
triadic
#0C0231 #310C02 #02310C
tetradic
#0C0231 #31020F #273102 #023124
square
#0C0231 #31020F #273102 #023124
split-complementary
#0C0231 #312402 #0F3102
monochromatic
#07011D #07011D #0C0231 #1A046C #2907A7

Accessibility & contrast

On white

19.65
#0C0231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0231
19.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0231#FFFFFF#000000##FFFFFF
##0C02311.0019.651.0719.65
#FFFFFF19.651.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D32
Deuteranopia (green-blind)
#000A30
Tritanopia (blue-blind)
#000F19
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0c0231;
/* rgb */ color: rgb(12, 2, 49);
/* oklch */ color: oklch(16.2% 0.088 282.7);
Tailwind
colors: {
  custom: {
    50: '#4f4769',
    500: '#0c0231',
    950: '#000000',
  },
}
SCSS
$custom: #0c0231;
$custom-light: #4f4769;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0231",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 252.766,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.16154,
    "c": 0.08804,
    "h": 282.7
  },
  "luminance": 0.00343
}

Semantic roles & 50–950 ramp

primary
#0C0231
secondary
#627519
accent
#FF29D1
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C0231

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

Preview Lab → · Contrast checker → · Palette generator →

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