#2A1765#2A1765

#2A1765 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.128 H 286.4°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2A1765
RGBrgb(42, 23, 101)
HSLhsl(255, 63%, 24%)
HSVhsv(255, 77%, 40%)
CMYKcmyk(58.4%, 77.2%, 0%, 60.4%)
CIE-LABlab(15.72, 31.35, -42.55)
CIE-LCHlch(15.72, 52.85, 306.38°)
OKLaboklab(28.73% 0.0361 -0.1224)
OKLCHoklch(28.73% 0.128 286.4)
XYZxyz(3.6095, 2.0444, 12.5138)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1765 #526517
analogous
#172B65 #2A1765 #511765
triadic
#2A1765 #652A17 #17652A
tetradic
#2A1765 #65172B #526517 #176551
square
#2A1765 #65172B #526517 #176551
split-complementary
#2A1765 #655117 #2B6517
monochromatic
#0A0619 #150C33 #2A1765 #3F2297 #532EC9

Accessibility & contrast

On white

14.90
#2A1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A1765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1765
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1765#FFFFFF#000000##FFFFFF
##2A17651.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#102C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1765;
/* rgb */ color: rgb(42, 23, 101);
/* oklch */ color: oklch(28.7% 0.128 286.4);
Tailwind
colors: {
  custom: {
    50: '#6b5692',
    500: '#2a1765',
    950: '#000000',
  },
}
SCSS
$custom: #2a1765;
$custom-light: #6b5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1765",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 254.615,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28728,
    "c": 0.12763,
    "h": 286.4
  },
  "luminance": 0.02045
}

Semantic roles & 50–950 ramp

primary
#2A1765
secondary
#849B3C
accent
#E642BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1765

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

Preview Lab → · Contrast checker → · Palette generator →

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