#2C175A#2C175A

#2C175A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.113 H 291.8°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#2C175A
RGBrgb(44, 23, 90)
HSLhsl(259, 59%, 22%)
HSVhsv(259, 74%, 35%)
CMYKcmyk(51.1%, 74.4%, 0%, 64.7%)
CIE-LABlab(14.88, 28.18, -36.59)
CIE-LCHlch(14.88, 46.19, 307.60°)
OKLaboklab(27.86% 0.0418 -0.1049)
OKLCHoklch(27.86% 0.113 291.8)
XYZxyz(3.1900, 1.8863, 9.8669)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C175A #455A17
analogous
#17245A #2C175A #4E175A
triadic
#2C175A #5A2C17 #175A2C
tetradic
#2C175A #5A1724 #455A17 #175A4E
square
#2C175A #5A1724 #455A17 #175A4E
split-complementary
#2C175A #5A4E17 #245A17
monochromatic
#0C0618 #140B29 #2C175A #44238B #5C30BB

Accessibility & contrast

On white

15.25
#2C175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C175A
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C175A#FFFFFF#000000##FFFFFF
##2C175A1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#1E2836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c175a;
/* rgb */ color: rgb(44, 23, 90);
/* oklch */ color: oklch(27.9% 0.113 291.8);
Tailwind
colors: {
  custom: {
    50: '#6a5689',
    500: '#2c175a',
    950: '#000000',
  },
}
SCSS
$custom: #2c175a;
$custom-light: #6a5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2c175a",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 258.806,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27856,
    "c": 0.11291,
    "h": 291.8
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#2C175A
secondary
#76913C
accent
#E245B1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C175A

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

Preview Lab → · Contrast checker → · Palette generator →

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