#2A1749#2A1749

#2A1749 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.089 H 297.3°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2A1749
RGBrgb(42, 23, 73)
HSLhsl(263, 52%, 19%)
HSVhsv(263, 68%, 29%)
CMYKcmyk(42.5%, 68.5%, 0%, 71.4%)
CIE-LABlab(13.14, 22.35, -27.83)
CIE-LCHlch(13.14, 35.69, 308.76°)
OKLaboklab(26.08% 0.0409 -0.0792)
OKLCHoklch(26.08% 0.089 297.3)
XYZxyz(2.4635, 1.5860, 6.4784)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1749 #364917
analogous
#171D49 #2A1749 #431749
triadic
#2A1749 #492A17 #17492A
tetradic
#2A1749 #49171D #364917 #174943
square
#2A1749 #49171D #364917 #174943
split-complementary
#2A1749 #494317 #1D4917
monochromatic
#0D0717 #0F081A #2A1749 #452678 #6034A6

Accessibility & contrast

On white

15.94
#2A1749 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1749
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1749#FFFFFF#000000##FFFFFF
##2A17491.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#022148
Tritanopia (blue-blind)
#23222D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1749;
/* rgb */ color: rgb(42, 23, 73);
/* oklch */ color: oklch(26.1% 0.089 297.3);
Tailwind
colors: {
  custom: {
    50: '#66557c',
    500: '#2a1749',
    950: '#000000',
  },
}
SCSS
$custom: #2a1749;
$custom-light: #66557c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1749",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 73
  },
  "hsl": {
    "h": 262.8,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26082,
    "c": 0.08913,
    "h": 297.3
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#2A1749
secondary
#66803C
accent
#DC4CA5
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2A1749

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

Preview Lab → · Contrast checker → · Palette generator →

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