#2C1750#2C1750

#2C1750 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.099 H 296.0°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#2C1750
RGBrgb(44, 23, 80)
HSLhsl(262, 55%, 20%)
HSVhsv(262, 71%, 31%)
CMYKcmyk(45%, 71.2%, 0%, 68.6%)
CIE-LABlab(13.99, 25.04, -31.27)
CIE-LCHlch(13.99, 40.06, 308.68°)
OKLaboklab(26.94% 0.0435 -0.0892)
OKLCHoklch(26.94% 0.099 296)
XYZxyz(2.7927, 1.7274, 7.7741)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1750 #3B5017
analogous
#171F50 #2C1750 #481750
triadic
#2C1750 #502C17 #17502C
tetradic
#2C1750 #50171F #3B5017 #175048
square
#2C1750 #50171F #3B5017 #175048
split-complementary
#2C1750 #504817 #1F5017
monochromatic
#0D0718 #120920 #2C1750 #462580 #6032AF

Accessibility & contrast

On white

15.61
#2C1750 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1750
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1750#FFFFFF#000000##FFFFFF
##2C17501.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1750;
/* rgb */ color: rgb(44, 23, 80);
/* oklch */ color: oklch(26.9% 0.099 296.0);
Tailwind
colors: {
  custom: {
    50: '#695582',
    500: '#2c1750',
    950: '#000000',
  },
}
SCSS
$custom: #2c1750;
$custom-light: #695582;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1750",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 80
  },
  "hsl": {
    "h": 262.105,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26936,
    "c": 0.09925,
    "h": 296
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#2C1750
secondary
#6B873C
accent
#DF49A8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C1750

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

Preview Lab → · Contrast checker → · Palette generator →

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