#2A1862#2A1862

#2A1862 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.122 H 287.0°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#2A1862
RGBrgb(42, 24, 98)
HSLhsl(255, 61%, 24%)
HSVhsv(255, 76%, 38%)
CMYKcmyk(57.1%, 75.5%, 0%, 61.6%)
CIE-LABlab(15.63, 29.78, -40.71)
CIE-LCHlch(15.63, 50.44, 306.18°)
OKLaboklab(28.57% 0.0359 -0.117)
OKLCHoklch(28.57% 0.122 287)
XYZxyz(3.4854, 2.0272, 11.7605)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1862 #506218
analogous
#182B62 #2A1862 #4F1862
triadic
#2A1862 #622A18 #18622A
tetradic
#2A1862 #62182B #506218 #18624F
square
#2A1862 #62182B #506218 #18624F
split-complementary
#2A1862 #624F18 #2B6218
monochromatic
#0B0619 #150C31 #2A1862 #3F2493 #5430C4

Accessibility & contrast

On white

14.94
#2A1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1862
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1862#FFFFFF#000000##FFFFFF
##2A18621.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#132C3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1862;
/* rgb */ color: rgb(42, 24, 98);
/* oklch */ color: oklch(28.6% 0.122 287.0);
Tailwind
colors: {
  custom: {
    50: '#6a578f',
    500: '#2a1862',
    950: '#000000',
  },
}
SCSS
$custom: #2a1862;
$custom-light: #6a578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1862",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 254.595,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28573,
    "c": 0.12242,
    "h": 287
  },
  "luminance": 0.02027
}

Semantic roles & 50–950 ramp

primary
#2A1862
secondary
#82983E
accent
#E444BD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1862

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

Preview Lab → · Contrast checker → · Palette generator →

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