#2A1075#2A1075

#2A1075 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.6% C 0.155 H 283.4°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2A1075
RGBrgb(42, 16, 117)
HSLhsl(255, 76%, 26%)
HSVhsv(255, 86%, 46%)
CMYKcmyk(64.1%, 86.3%, 0%, 54.1%)
CIE-LABlab(16.24, 39.88, -52.13)
CIE-LCHlch(16.24, 65.64, 307.42°)
OKLaboklab(29.62% 0.0359 -0.1503)
OKLCHoklch(29.62% 0.155 283.4)
XYZxyz(4.3500, 2.1469, 17.0113)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1075 #5B7510
analogous
#102875 #2A1075 #5C1075
triadic
#2A1075 #752A10 #10752A
tetradic
#2A1075 #751028 #5B7510 #10755C
square
#2A1075 #751028 #5B7510 #10755C
split-complementary
#2A1075 #755C10 #287510
monochromatic
#0A041B #17093F #2A1075 #3D17AB #511FE0

Accessibility & contrast

On white

14.69
#2A1075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A1075 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1075
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1075#FFFFFF#000000##FFFFFF
##2A10751.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1075;
/* rgb */ color: rgb(42, 16, 117);
/* oklch */ color: oklch(29.6% 0.155 283.4);
Tailwind
colors: {
  custom: {
    50: '#6f539e',
    500: '#2a1075',
    950: '#000000',
  },
}
SCSS
$custom: #2a1075;
$custom-light: #6f539e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1075",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 255.446,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29617,
    "c": 0.15455,
    "h": 283.4
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#2A1075
secondary
#8DAC35
accent
#F335C2
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1075

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

Preview Lab → · Contrast checker → · Palette generator →

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