#2C1769#2C1769

#2C1769 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.133 H 286.8°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2C1769
RGBrgb(44, 23, 105)
HSLhsl(255, 64%, 25%)
HSVhsv(255, 78%, 41%)
CMYKcmyk(58.1%, 78.1%, 0%, 58.8%)
CIE-LABlab(16.35, 32.95, -44.15)
CIE-LCHlch(16.35, 55.09, 306.74°)
OKLaboklab(29.35% 0.0383 -0.127)
OKLCHoklch(29.35% 0.133 286.8)
XYZxyz(3.8941, 2.1680, 13.5751)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1769 #546917
analogous
#172B69 #2C1769 #551769
triadic
#2C1769 #692C17 #17692C
tetradic
#2C1769 #69172B #546917 #176955
square
#2C1769 #69172B #546917 #176955
split-complementary
#2C1769 #695517 #2B6917
monochromatic
#0B0519 #170C37 #2C1769 #41229B #562DCD

Accessibility & contrast

On white

14.65
#2C1769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C1769 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1769
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1769#FFFFFF#000000##FFFFFF
##2C17691.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#112E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1769;
/* rgb */ color: rgb(44, 23, 105);
/* oklch */ color: oklch(29.3% 0.133 286.8);
Tailwind
colors: {
  custom: {
    50: '#6d5695',
    500: '#2c1769',
    950: '#000000',
  },
}
SCSS
$custom: #2c1769;
$custom-light: #6d5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1769",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 255.366,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29347,
    "c": 0.13267,
    "h": 286.8
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#2C1769
secondary
#869F3D
accent
#E741BC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1769

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

Preview Lab → · Contrast checker → · Palette generator →

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