#2C1283#2C1283

#2C1283 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.169 H 281.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2C1283
RGBrgb(44, 18, 131)
HSLhsl(254, 76%, 29%)
HSVhsv(254, 86%, 51%)
CMYKcmyk(66.4%, 86.3%, 0%, 48.6%)
CIE-LABlab(18.39, 43.38, -57.51)
CIE-LCHlch(18.39, 72.03, 307.03°)
OKLaboklab(31.63% 0.033 -0.1659)
OKLCHoklch(31.63% 0.169 281.2)
XYZxyz(5.3505, 2.6064, 21.6895)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1283 #698312
analogous
#123183 #2C1283 #651283
triadic
#2C1283 #832C12 #12832C
tetradic
#2C1283 #831231 #698312 #128365
square
#2C1283 #831231 #698312 #128365
split-complementary
#2C1283 #836512 #318312
monochromatic
#09041B #1A0B4D #2C1283 #3E19B9 #572DE2

Accessibility & contrast

On white

13.80
#2C1283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1283
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1283#FFFFFF#000000##FFFFFF
##2C12831.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00364D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1283;
/* rgb */ color: rgb(44, 18, 131);
/* oklch */ color: oklch(31.6% 0.169 281.2);
Tailwind
colors: {
  custom: {
    50: '#7356a8',
    500: '#2c1283',
    950: '#000000',
  },
}
SCSS
$custom: #2c1283;
$custom-light: #7356a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1283",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 253.805,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31631,
    "c": 0.16918,
    "h": 281.2
  },
  "luminance": 0.02607
}

Semantic roles & 50–950 ramp

primary
#2C1283
secondary
#9BB838
accent
#F235C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1283

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

Preview Lab → · Contrast checker → · Palette generator →

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