#2C0F46#2C0F46

#2C0F46 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.098 H 304.2°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#2C0F46
RGBrgb(44, 15, 70)
HSLhsl(272, 65%, 17%)
HSVhsv(272, 79%, 27%)
CMYKcmyk(37.1%, 78.6%, 0%, 72.5%)
CIE-LABlab(11.41, 26.79, -28.53)
CIE-LCHlch(11.41, 39.14, 313.19°)
OKLaboklab(24.82% 0.0551 -0.0811)
OKLCHoklch(24.82% 0.098 304.2)
XYZxyz(2.3148, 1.3193, 5.9259)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F46 #29460F
analogous
#100F46 #2C0F46 #460F45
triadic
#2C0F46 #462C0F #0F462C
tetradic
#2C0F46 #46100F #29460F #0F4546
square
#2C0F46 #46100F #29460F #0F4546
split-complementary
#2C0F46 #45460F #0F4610
monochromatic
#100519 #100519 #2C0F46 #4C1A78 #6B25AB

Accessibility & contrast

On white

16.62
#2C0F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2C0F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F46
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F46#FFFFFF#000000##FFFFFF
##2C0F461.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#271C29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c0f46;
/* rgb */ color: rgb(44, 15, 70);
/* oklch */ color: oklch(24.8% 0.098 304.2);
Tailwind
colors: {
  custom: {
    50: '#68507a',
    500: '#2c0f46',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f46;
$custom-light: #68507a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f46",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 271.636,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24816,
    "c": 0.09807,
    "h": 304.2
  },
  "luminance": 0.01319
}

Semantic roles & 50–950 ramp

primary
#2C0F46
secondary
#568030
accent
#E8408F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C0F46

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

Preview Lab → · Contrast checker → · Palette generator →

#2C0F46 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva