#0C0126#0C0126

#0C0126 is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.4% C 0.076 H 290.6°. Best body text is #FFFFFF at 20.04:1 contrast (WCAG AA passes).

Color values

HEX#0C0126
RGBrgb(12, 1, 38)
HSLhsl(258, 95%, 8%)
HSVhsv(258, 97%, 15%)
CMYKcmyk(68.4%, 97.4%, 0%, 85.1%)
CIE-LABlab(2.17, 11.65, -20.12)
CIE-LCHlch(2.17, 23.25, 300.06°)
OKLaboklab(14.36% 0.0266 -0.0709)
OKLCHoklch(14.36% 0.076 290.6)
XYZxyz(0.5122, 0.2398, 1.8526)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0126 #1B2601
analogous
#010826 #0C0126 #1E0126
triadic
#0C0126 #260C01 #01260C
tetradic
#0C0126 #260108 #1B2601 #01261E
square
#0C0126 #260108 #1B2601 #01261E
split-complementary
#0C0126 #261E01 #082601
monochromatic
#09011E #09011E #0C0126 #1F0362 #32049D

Accessibility & contrast

On white

20.04
#0C0126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0C0126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0126
20.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0126#FFFFFF#000000##FFFFFF
##0C01261.0020.041.0520.04
#FFFFFF20.041.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000927
Deuteranopia (green-blind)
#000725
Tritanopia (blue-blind)
#040912
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0c0126;
/* rgb */ color: rgb(12, 1, 38);
/* oklch */ color: oklch(14.4% 0.076 290.6);
Tailwind
colors: {
  custom: {
    50: '#4c4760',
    500: '#0c0126',
    950: '#000000',
  },
}
SCSS
$custom: #0c0126;
$custom-light: #4c4760;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0126",
  "rgb": {
    "r": 12,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 257.838,
    "s": 94.872,
    "l": 7.647
  },
  "oklch": {
    "l": 0.14358,
    "c": 0.07579,
    "h": 290.6
  },
  "luminance": 0.0024
}

Semantic roles & 50–950 ramp

primary
#0C0126
secondary
#536D16
accent
#FF29BF
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#010005
muted
#777779

Preview Lab

Preview with #0C0126

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

Preview Lab → · Contrast checker → · Palette generator →

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