#2A1C69#2A1C69

#2A1C69 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.127 H 284.0°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#2A1C69
RGBrgb(42, 28, 105)
HSLhsl(251, 58%, 26%)
HSVhsv(251, 73%, 41%)
CMYKcmyk(60%, 73.3%, 0%, 58.8%)
CIE-LABlab(17.19, 29.68, -42.77)
CIE-LCHlch(17.19, 52.06, 304.76°)
OKLaboklab(29.9% 0.0306 -0.1231)
OKLCHoklch(29.9% 0.127 284)
XYZxyz(3.9191, 2.3424, 13.6075)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C69 #5B691C
analogous
#1C3469 #2A1C69 #501C69
triadic
#2A1C69 #692A1C #1C692A
tetradic
#2A1C69 #691C34 #5B691C #1C6950
square
#2A1C69 #691C34 #5B691C #1C6950
split-complementary
#2A1C69 #69501C #34691C
monochromatic
#0A0618 #170F39 #2A1C69 #3D2999 #5136C9

Accessibility & contrast

On white

14.30
#2A1C69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A1C69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C69
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C69#FFFFFF#000000##FFFFFF
##2A1C691.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6B
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#0A3040
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1c69;
/* rgb */ color: rgb(42, 28, 105);
/* oklch */ color: oklch(29.9% 0.127 284.0);
Tailwind
colors: {
  custom: {
    50: '#6b5995',
    500: '#2a1c69',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c69;
$custom-light: #6b5995;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c69",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 105
  },
  "hsl": {
    "h": 250.909,
    "s": 57.895,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29897,
    "c": 0.12684,
    "h": 284
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#2A1C69
secondary
#8D9E43
accent
#E147C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1C69

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

Preview Lab → · Contrast checker → · Palette generator →

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