#2C1850#2C1850

#2C1850 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.098 H 295.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#2C1850
RGBrgb(44, 24, 80)
HSLhsl(261, 54%, 20%)
HSVhsv(261, 70%, 31%)
CMYKcmyk(45%, 70%, 0%, 68.6%)
CIE-LABlab(14.22, 24.41, -30.89)
CIE-LCHlch(14.22, 39.37, 308.31°)
OKLaboklab(27.1% 0.0422 -0.0881)
OKLCHoklch(27.1% 0.098 295.6)
XYZxyz(2.8129, 1.7679, 7.7809)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1850 #3C5018
analogous
#182050 #2C1850 #481850
triadic
#2C1850 #502C18 #18502C
tetradic
#2C1850 #501820 #3C5018 #185048
square
#2C1850 #501820 #3C5018 #185048
split-complementary
#2C1850 #504818 #205018
monochromatic
#0D0718 #120A21 #2C1850 #46267F #6034AE

Accessibility & contrast

On white

15.51
#2C1850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C1850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1850
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1850#FFFFFF#000000##FFFFFF
##2C18501.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#232531
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1850;
/* rgb */ color: rgb(44, 24, 80);
/* oklch */ color: oklch(27.1% 0.098 295.6);
Tailwind
colors: {
  custom: {
    50: '#695682',
    500: '#2c1850',
    950: '#000000',
  },
}
SCSS
$custom: #2c1850;
$custom-light: #695682;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1850",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 261.429,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27104,
    "c": 0.09769,
    "h": 295.6
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

primary
#2C1850
secondary
#6C873D
accent
#DD4BA9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C1850

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

Preview Lab → · Contrast checker → · Palette generator →

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