#2A1963#2A1963

#2A1963 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.122 H 286.5°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#2A1963
RGBrgb(42, 25, 99)
HSLhsl(254, 60%, 24%)
HSVhsv(254, 75%, 39%)
CMYKcmyk(57.6%, 74.7%, 0%, 61.2%)
CIE-LABlab(15.94, 29.51, -40.86)
CIE-LCHlch(15.94, 50.40, 305.84°)
OKLaboklab(28.83% 0.0347 -0.1175)
OKLCHoklch(28.83% 0.123 286.5)
XYZxyz(3.5539, 2.0882, 12.0178)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1963 #526319
analogous
#192D63 #2A1963 #4F1963
triadic
#2A1963 #632A19 #19632A
tetradic
#2A1963 #63192D #526319 #19634F
square
#2A1963 #63192D #526319 #19634F
split-complementary
#2A1963 #634F19 #2D6319
monochromatic
#0A0618 #150D32 #2A1963 #3F2594 #5332C5

Accessibility & contrast

On white

14.81
#2A1963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A1963 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1963
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1963#FFFFFF#000000##FFFFFF
##2A19631.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#122C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1963;
/* rgb */ color: rgb(42, 25, 99);
/* oklch */ color: oklch(28.8% 0.122 286.5);
Tailwind
colors: {
  custom: {
    50: '#6b5790',
    500: '#2a1963',
    950: '#000000',
  },
}
SCSS
$custom: #2a1963;
$custom-light: #6b5790;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1963",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 253.784,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28827,
    "c": 0.1225,
    "h": 286.5
  },
  "luminance": 0.02088
}

Semantic roles & 50–950 ramp

primary
#2A1963
secondary
#84993F
accent
#E345BF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2A1963

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

Preview Lab → · Contrast checker → · Palette generator →

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