#2C1956#2C1956

#2C1956 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.105 H 292.6°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2C1956
RGBrgb(44, 25, 86)
HSLhsl(259, 55%, 22%)
HSVhsv(259, 71%, 34%)
CMYKcmyk(48.8%, 70.9%, 0%, 66.3%)
CIE-LABlab(14.97, 25.68, -33.76)
CIE-LCHlch(14.97, 42.41, 307.26°)
OKLaboklab(27.81% 0.0402 -0.0965)
OKLCHoklch(27.81% 0.105 292.6)
XYZxyz(3.0656, 1.9025, 9.0080)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1956 #435619
analogous
#192456 #2C1956 #4B1956
triadic
#2C1956 #562C19 #19562C
tetradic
#2C1956 #561924 #435619 #19564B
square
#2C1956 #561924 #435619 #19564B
split-complementary
#2C1956 #564B19 #245619
monochromatic
#0C0718 #140B27 #2C1956 #442785 #5D35B5

Accessibility & contrast

On white

15.21
#2C1956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1956
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1956#FFFFFF#000000##FFFFFF
##2C19561.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#202835
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1956;
/* rgb */ color: rgb(44, 25, 86);
/* oklch */ color: oklch(27.8% 0.105 292.6);
Tailwind
colors: {
  custom: {
    50: '#695786',
    500: '#2c1956',
    950: '#000000',
  },
}
SCSS
$custom: #2c1956;
$custom-light: #695786;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1956",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 86
  },
  "hsl": {
    "h": 258.689,
    "s": 54.955,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27807,
    "c": 0.10457,
    "h": 292.6
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#2C1956
secondary
#748C3E
accent
#DE4AB0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1956

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

Preview Lab → · Contrast checker → · Palette generator →

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