#2C1258#2C1258

#2C1258 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.117 H 294.0°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2C1258
RGBrgb(44, 18, 88)
HSLhsl(262, 66%, 21%)
HSVhsv(262, 80%, 35%)
CMYKcmyk(50%, 79.5%, 0%, 65.5%)
CIE-LABlab(13.67, 30.43, -37.23)
CIE-LCHlch(13.67, 48.08, 309.26°)
OKLaboklab(26.94% 0.0476 -0.1067)
OKLCHoklch(26.94% 0.117 294)
XYZxyz(3.0160, 1.6726, 9.3946)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1258 #3E5812
analogous
#121B58 #2C1258 #4F1258
triadic
#2C1258 #582C12 #12582C
tetradic
#2C1258 #58121B #3E5812 #12584F
square
#2C1258 #58121B #3E5812 #12584F
split-complementary
#2C1258 #584F12 #1B5812
monochromatic
#0D0519 #130825 #2C1258 #451C8B #5F27BE

Accessibility & contrast

On white

15.74
#2C1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1258
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1258#FFFFFF#000000##FFFFFF
##2C12581.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#1F2434
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1258;
/* rgb */ color: rgb(44, 18, 88);
/* oklch */ color: oklch(26.9% 0.117 294.0);
Tailwind
colors: {
  custom: {
    50: '#6a5388',
    500: '#2c1258',
    950: '#000000',
  },
}
SCSS
$custom: #2c1258;
$custom-light: #6a5388;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1258",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 262.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26936,
    "c": 0.11683,
    "h": 294
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#2C1258
secondary
#6F9135
accent
#E93FAA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1258

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

Preview Lab → · Contrast checker → · Palette generator →

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