#2C1869#2C1869

#2C1869 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.132 H 286.5°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2C1869
RGBrgb(44, 24, 105)
HSLhsl(255, 63%, 25%)
HSVhsv(255, 77%, 41%)
CMYKcmyk(58.1%, 77.1%, 0%, 58.8%)
CIE-LABlab(16.55, 32.39, -43.82)
CIE-LCHlch(16.55, 54.49, 306.47°)
OKLaboklab(29.49% 0.0374 -0.1261)
OKLCHoklch(29.49% 0.132 286.5)
XYZxyz(3.9144, 2.2084, 13.5819)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1869 #556918
analogous
#182C69 #2C1869 #541869
triadic
#2C1869 #692C18 #18692C
tetradic
#2C1869 #69182C #556918 #186954
square
#2C1869 #69182C #556918 #186954
split-complementary
#2C1869 #695418 #2C6918
monochromatic
#0A0619 #170D37 #2C1869 #41239B #562FCD

Accessibility & contrast

On white

14.57
#2C1869 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C1869 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1869
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1869#FFFFFF#000000##FFFFFF
##2C18691.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#112E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1869;
/* rgb */ color: rgb(44, 24, 105);
/* oklch */ color: oklch(29.5% 0.132 286.5);
Tailwind
colors: {
  custom: {
    50: '#6d5795',
    500: '#2c1869',
    950: '#000000',
  },
}
SCSS
$custom: #2c1869;
$custom-light: #6d5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1869",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 105
  },
  "hsl": {
    "h": 254.815,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29488,
    "c": 0.13151,
    "h": 286.5
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#2C1869
secondary
#879F3E
accent
#E642BD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1869

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

Preview Lab → · Contrast checker → · Palette generator →

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