#2D1A73#2D1A73

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

Color values

HEX#2D1A73
RGBrgb(45, 26, 115)
HSLhsl(253, 63%, 28%)
HSVhsv(253, 77%, 45%)
CMYKcmyk(60.9%, 77.4%, 0%, 54.9%)
CIE-LABlab(18.07, 34.62, -47.81)
CIE-LCHlch(18.07, 59.03, 305.91°)
OKLaboklab(30.9% 0.0348 -0.1377)
OKLCHoklch(30.9% 0.142 284.2)
XYZxyz(4.5451, 2.5342, 16.4660)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A73 #60731A
analogous
#1A3373 #2D1A73 #591A73
triadic
#2D1A73 #732D1A #1A732D
tetradic
#2D1A73 #731A33 #60731A #1A7359
square
#2D1A73 #731A33 #60731A #1A7359
split-complementary
#2D1A73 #73591A #33731A
monochromatic
#0A0619 #190F41 #2D1A73 #4125A5 #5736D2

Accessibility & contrast

On white

13.94
#2D1A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D1A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A73
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A73#FFFFFF#000000##FFFFFF
##2D1A731.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#053345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1a73;
/* rgb */ color: rgb(45, 26, 115);
/* oklch */ color: oklch(30.9% 0.142 284.2);
Tailwind
colors: {
  custom: {
    50: '#6f599c',
    500: '#2d1a73',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a73;
$custom-light: #6f599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a73",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 252.809,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30903,
    "c": 0.14205,
    "h": 284.2
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#2D1A73
secondary
#92A841
accent
#E642C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1A73

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

Preview Lab → · Contrast checker → · Palette generator →

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