#2C175D#2C175D

#2C175D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.117 H 290.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2C175D
RGBrgb(44, 23, 93)
HSLhsl(258, 60%, 23%)
HSVhsv(258, 75%, 36%)
CMYKcmyk(52.7%, 75.3%, 0%, 63.5%)
CIE-LABlab(15.16, 29.14, -38.14)
CIE-LCHlch(15.16, 48.00, 307.37°)
OKLaboklab(28.14% 0.0412 -0.1094)
OKLCHoklch(28.14% 0.117 290.6)
XYZxyz(3.3203, 1.9384, 10.5530)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C175D #485D17
analogous
#17255D #2C175D #4F175D
triadic
#2C175D #5D2C17 #175D2C
tetradic
#2C175D #5D1725 #485D17 #175D4F
square
#2C175D #5D1725 #485D17 #175D4F
split-complementary
#2C175D #5D4F17 #255D17
monochromatic
#0C0619 #150B2C #2C175D #43238E #5A2FBF

Accessibility & contrast

On white

15.13
#2C175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C175D
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C175D#FFFFFF#000000##FFFFFF
##2C175D1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1C2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c175d;
/* rgb */ color: rgb(44, 23, 93);
/* oklch */ color: oklch(28.1% 0.117 290.6);
Tailwind
colors: {
  custom: {
    50: '#6b568c',
    500: '#2c175d',
    950: '#000000',
  },
}
SCSS
$custom: #2c175d;
$custom-light: #6b568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c175d",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 258,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28144,
    "c": 0.11693,
    "h": 290.6
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#2C175D
secondary
#79943C
accent
#E344B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C175D

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

Preview Lab → · Contrast checker → · Palette generator →

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