#2A1875#2A1875

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

Color values

HEX#2A1875
RGBrgb(42, 24, 117)
HSLhsl(252, 66%, 28%)
HSVhsv(252, 79%, 46%)
CMYKcmyk(64.1%, 79.5%, 0%, 54.1%)
CIE-LABlab(17.60, 35.95, -49.89)
CIE-LCHlch(17.60, 61.50, 305.78°)
OKLaboklab(30.56% 0.031 -0.1439)
OKLCHoklch(30.56% 0.147 282.2)
XYZxyz(4.4914, 2.4295, 17.0584)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1875 #637518
analogous
#183475 #2A1875 #581875
triadic
#2A1875 #752A18 #18752A
tetradic
#2A1875 #751834 #637518 #187558
square
#2A1875 #751834 #637518 #187558
split-complementary
#2A1875 #755818 #347518
monochromatic
#090519 #180E42 #2A1875 #3C22A8 #5232D5

Accessibility & contrast

On white

14.13
#2A1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1875
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1875#FFFFFF#000000##FFFFFF
##2A18751.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1875;
/* rgb */ color: rgb(42, 24, 117);
/* oklch */ color: oklch(30.6% 0.147 282.2);
Tailwind
colors: {
  custom: {
    50: '#6e589e',
    500: '#2a1875',
    950: '#000000',
  },
}
SCSS
$custom: #2a1875;
$custom-light: #6e589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1875",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 251.613,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30559,
    "c": 0.14719,
    "h": 282.2
  },
  "luminance": 0.0243
}

Semantic roles & 50–950 ramp

primary
#2A1875
secondary
#95AA3F
accent
#E93FC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1875

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

Preview Lab → · Contrast checker → · Palette generator →

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