#2C1253#2C1253

#2C1253 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.110 H 296.2°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#2C1253
RGBrgb(44, 18, 83)
HSLhsl(264, 64%, 20%)
HSVhsv(264, 78%, 33%)
CMYKcmyk(47%, 78.3%, 0%, 67.5%)
CIE-LABlab(13.19, 28.92, -34.62)
CIE-LCHlch(13.19, 45.11, 309.87°)
OKLaboklab(26.45% 0.0488 -0.099)
OKLCHoklch(26.45% 0.11 296.2)
XYZxyz(2.8159, 1.5926, 8.3410)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1253 #395312
analogous
#121953 #2C1253 #4D1253
triadic
#2C1253 #532C12 #12532C
tetradic
#2C1253 #531219 #395312 #12534D
square
#2C1253 #531219 #395312 #12534D
split-complementary
#2C1253 #534D12 #195312
monochromatic
#0D0519 #110721 #2C1253 #471D85 #6128B8

Accessibility & contrast

On white

15.93
#2C1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1253
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1253#FFFFFF#000000##FFFFFF
##2C12531.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#222331
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1253;
/* rgb */ color: rgb(44, 18, 83);
/* oklch */ color: oklch(26.4% 0.110 296.2);
Tailwind
colors: {
  custom: {
    50: '#6a5284',
    500: '#2c1253',
    950: '#000000',
  },
}
SCSS
$custom: #2c1253;
$custom-light: #6a5284;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1253",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 264,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26447,
    "c": 0.11043,
    "h": 296.2
  },
  "luminance": 0.01593
}

Semantic roles & 50–950 ramp

primary
#2C1253
secondary
#698C35
accent
#E740A5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1253

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

Preview Lab → · Contrast checker → · Palette generator →

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