#2C0D52#2C0D52

#2C0D52 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.115 H 298.0°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2C0D52
RGBrgb(44, 13, 82)
HSLhsl(267, 73%, 19%)
HSVhsv(267, 84%, 32%)
CMYKcmyk(46.3%, 84.1%, 0%, 67.8%)
CIE-LABlab(12.17, 31.23, -35.59)
CIE-LCHlch(12.17, 47.35, 311.26°)
OKLaboklab(25.7% 0.0542 -0.1019)
OKLCHoklch(25.7% 0.115 298)
XYZxyz(2.7052, 1.4325, 8.1150)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0D52 #33520D
analogous
#0D1052 #2C0D52 #4E0D52
triadic
#2C0D52 #522C0D #0D522C
tetradic
#2C0D52 #520D10 #33520D #0D524E
square
#2C0D52 #520D10 #33520D #0D524E
split-complementary
#2C0D52 #524E0D #10520D
monochromatic
#0E041A #10051D #2C0D52 #481587 #651EBC

Accessibility & contrast

On white

16.32
#2C0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C0D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0D52
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0D52#FFFFFF#000000##FFFFFF
##2C0D521.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#22202F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c0d52;
/* rgb */ color: rgb(44, 13, 82);
/* oklch */ color: oklch(25.7% 0.115 298.0);
Tailwind
colors: {
  custom: {
    50: '#6a5083',
    500: '#2c0d52',
    950: '#000000',
  },
}
SCSS
$custom: #2c0d52;
$custom-light: #6a5083;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0d52",
  "rgb": {
    "r": 44,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 266.957,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25704,
    "c": 0.11538,
    "h": 298
  },
  "luminance": 0.01433
}

Semantic roles & 50–950 ramp

primary
#2C0D52
secondary
#628D2E
accent
#EF389D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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