#2C1262#2C1262

#2C1262 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.129 H 290.2°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2C1262
RGBrgb(44, 18, 98)
HSLhsl(260, 69%, 23%)
HSVhsv(260, 82%, 38%)
CMYKcmyk(55.1%, 81.6%, 0%, 61.6%)
CIE-LABlab(14.68, 33.46, -42.26)
CIE-LCHlch(14.68, 53.91, 308.37°)
OKLaboklab(27.96% 0.0446 -0.1215)
OKLCHoklch(27.96% 0.129 290.2)
XYZxyz(3.4590, 1.8498, 11.7277)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1262 #486212
analogous
#122062 #2C1262 #541262
triadic
#2C1262 #622C12 #12622C
tetradic
#2C1262 #621220 #486212 #126254
square
#2C1262 #621220 #486212 #126254
split-complementary
#2C1262 #625412 #206212
monochromatic
#0C051A #15092E #2C1262 #431B96 #5A25C9

Accessibility & contrast

On white

15.33
#2C1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1262
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1262#FFFFFF#000000##FFFFFF
##2C12621.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#182839
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1262;
/* rgb */ color: rgb(44, 18, 98);
/* oklch */ color: oklch(28.0% 0.129 290.2);
Tailwind
colors: {
  custom: {
    50: '#6c538f',
    500: '#2c1262',
    950: '#000000',
  },
}
SCSS
$custom: #2c1262;
$custom-light: #6c538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1262",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 259.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27957,
    "c": 0.12941,
    "h": 290.2
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#2C1262
secondary
#799A36
accent
#EC3CB3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1262

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

Preview Lab → · Contrast checker → · Palette generator →

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