#2A1A6E#2A1A6E

#2A1A6E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.136 H 283.3°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2A1A6E
RGBrgb(42, 26, 110)
HSLhsl(251, 62%, 27%)
HSVhsv(251, 76%, 43%)
CMYKcmyk(61.8%, 76.4%, 0%, 56.9%)
CIE-LABlab(17.26, 32.54, -45.92)
CIE-LCHlch(17.26, 56.28, 305.32°)
OKLaboklab(30.1% 0.0313 -0.1323)
OKLCHoklch(30.1% 0.136 283.3)
XYZxyz(4.1378, 2.3565, 14.9856)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A6E #5E6E1A
analogous
#1A346E #2A1A6E #541A6E
triadic
#2A1A6E #6E2A1A #1A6E2A
tetradic
#2A1A6E #6E1A34 #5E6E1A #1A6E54
square
#2A1A6E #6E1A34 #5E6E1A #1A6E54
split-complementary
#2A1A6E #6E541A #346E1A
monochromatic
#090619 #170E3D #2A1A6E #3D26A0 #5134CF

Accessibility & contrast

On white

14.27
#2A1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1A6E
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A6E#FFFFFF#000000##FFFFFF
##2A1A6E1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#013142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1a6e;
/* rgb */ color: rgb(42, 26, 110);
/* oklch */ color: oklch(30.1% 0.136 283.3);
Tailwind
colors: {
  custom: {
    50: '#6d5898',
    500: '#2a1a6e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a6e;
$custom-light: #6d5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a6e",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 251.429,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30097,
    "c": 0.13595,
    "h": 283.3
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#2A1A6E
secondary
#90A341
accent
#E543C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A1A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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