#2A1A73#2A1A73

#2A1A73 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.142 H 282.2°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2A1A73
RGBrgb(42, 26, 115)
HSLhsl(251, 63%, 28%)
HSVhsv(251, 77%, 45%)
CMYKcmyk(63.5%, 77.4%, 0%, 54.9%)
CIE-LABlab(17.78, 34.19, -48.31)
CIE-LCHlch(17.78, 59.18, 305.29°)
OKLaboklab(30.62% 0.0301 -0.1393)
OKLCHoklch(30.62% 0.142 282.2)
XYZxyz(4.4178, 2.4685, 16.4600)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A73 #63731A
analogous
#1A3673 #2A1A73 #571A73
triadic
#2A1A73 #732A1A #1A732A
tetradic
#2A1A73 #731A36 #63731A #1A7357
square
#2A1A73 #731A36 #63731A #1A7357
split-complementary
#2A1A73 #73571A #36731A
monochromatic
#090619 #180F41 #2A1A73 #3C25A5 #5236D2

Accessibility & contrast

On white

14.06
#2A1A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A1A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A73
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A73#FFFFFF#000000##FFFFFF
##2A1A731.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1a73;
/* rgb */ color: rgb(42, 26, 115);
/* oklch */ color: oklch(30.6% 0.142 282.2);
Tailwind
colors: {
  custom: {
    50: '#6e599c',
    500: '#2a1a73',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a73;
$custom-light: #6e599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a73",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 250.787,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30621,
    "c": 0.14249,
    "h": 282.2
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#2A1A73
secondary
#95A841
accent
#E642C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1A73

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

Preview Lab → · Contrast checker → · Palette generator →

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