#2A1869#2A1869

#2A1869 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.132 H 285.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2A1869
RGBrgb(42, 24, 105)
HSLhsl(253, 63%, 25%)
HSVhsv(253, 77%, 41%)
CMYKcmyk(60%, 77.1%, 0%, 58.8%)
CIE-LABlab(16.33, 32.07, -44.18)
CIE-LCHlch(16.33, 54.59, 305.97°)
OKLaboklab(29.29% 0.0342 -0.1272)
OKLCHoklch(29.29% 0.132 285.1)
XYZxyz(3.8305, 2.1652, 13.5779)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1869 #576918
analogous
#182F69 #2A1869 #521869
triadic
#2A1869 #692A18 #18692A
tetradic
#2A1869 #69182F #576918 #186952
square
#2A1869 #69182F #576918 #186952
split-complementary
#2A1869 #695218 #2F6918
monochromatic
#0A0619 #160D37 #2A1869 #3E239B #522FCD

Accessibility & contrast

On white

14.65
#2A1869 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1869
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1869#FFFFFF#000000##FFFFFF
##2A18691.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#0A2E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1869;
/* rgb */ color: rgb(42, 24, 105);
/* oklch */ color: oklch(29.3% 0.132 285.1);
Tailwind
colors: {
  custom: {
    50: '#6c5795',
    500: '#2a1869',
    950: '#000000',
  },
}
SCSS
$custom: #2a1869;
$custom-light: #6c5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1869",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 105
  },
  "hsl": {
    "h": 253.333,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29286,
    "c": 0.13171,
    "h": 285.1
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#2A1869
secondary
#899F3E
accent
#E642C1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1869

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

Preview Lab → · Contrast checker → · Palette generator →

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