#2C1852#2C1852

#2C1852 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.101 H 294.7°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2C1852
RGBrgb(44, 24, 82)
HSLhsl(261, 55%, 21%)
HSVhsv(261, 71%, 32%)
CMYKcmyk(46.3%, 70.7%, 0%, 67.8%)
CIE-LABlab(14.39, 25.04, -31.98)
CIE-LCHlch(14.39, 40.62, 308.05°)
OKLaboklab(27.28% 0.042 -0.0913)
OKLCHoklch(27.28% 0.101 294.7)
XYZxyz(2.8879, 1.7979, 8.1759)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1852 #3E5218
analogous
#182152 #2C1852 #491852
triadic
#2C1852 #522C18 #18522C
tetradic
#2C1852 #521821 #3E5218 #185249
square
#2C1852 #521821 #3E5218 #185249
split-complementary
#2C1852 #524918 #215218
monochromatic
#0D0718 #130A23 #2C1852 #452681 #5F34B1

Accessibility & contrast

On white

15.45
#2C1852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C1852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1852
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1852#FFFFFF#000000##FFFFFF
##2C18521.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#222632
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1852;
/* rgb */ color: rgb(44, 24, 82);
/* oklch */ color: oklch(27.3% 0.101 294.7);
Tailwind
colors: {
  custom: {
    50: '#695683',
    500: '#2c1852',
    950: '#000000',
  },
}
SCSS
$custom: #2c1852;
$custom-light: #695683;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1852",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 260.69,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2728,
    "c": 0.1005,
    "h": 294.7
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#2C1852
secondary
#6F893D
accent
#DE4AAB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2C1852

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

Preview Lab → · Contrast checker → · Palette generator →

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