#0C0239#0C0239

#0C0239 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.3% C 0.099 H 279.1°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#0C0239
RGBrgb(12, 2, 57)
HSLhsl(251, 93%, 12%)
HSVhsv(251, 96%, 22%)
CMYKcmyk(78.9%, 96.5%, 0%, 77.6%)
CIE-LABlab(3.77, 21.04, -31.86)
CIE-LCHlch(3.77, 38.18, 303.43°)
OKLaboklab(17.29% 0.0156 -0.0974)
OKLCHoklch(17.29% 0.099 279.1)
XYZxyz(0.9116, 0.4169, 3.9025)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0239 #2F3902
analogous
#021439 #0C0239 #280239
triadic
#0C0239 #390C02 #02390C
tetradic
#0C0239 #390214 #2F3902 #023928
square
#0C0239 #390214 #2F3902 #023928
split-complementary
#0C0239 #392802 #143902
monochromatic
#06011E #06011E #0C0239 #180474 #2506AF

Accessibility & contrast

On white

19.38
#0C0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0C0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0239
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0239#FFFFFF#000000##FFFFFF
##0C02391.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F3A
Deuteranopia (green-blind)
#000B38
Tritanopia (blue-blind)
#00131E
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c0239;
/* rgb */ color: rgb(12, 2, 57);
/* oklch */ color: oklch(17.3% 0.099 279.1);
Tailwind
colors: {
  custom: {
    50: '#524670',
    500: '#0c0239',
    950: '#000000',
  },
}
SCSS
$custom: #0c0239;
$custom-light: #524670;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0239",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 250.909,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17286,
    "c": 0.09865,
    "h": 279.1
  },
  "luminance": 0.00417
}

Semantic roles & 50–950 ramp

primary
#0C0239
secondary
#6B7D1A
accent
#FF29D8
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#030007
muted
#78777A

Preview Lab

Preview with #0C0239

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

Preview Lab → · Contrast checker → · Palette generator →

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