#2D1895#2D1895

#2D1895 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.186 H 278.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2D1895
RGBrgb(45, 24, 149)
HSLhsl(250, 72%, 34%)
HSVhsv(250, 84%, 58%)
CMYKcmyk(69.8%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.51, 46.22, -63.60)
CIE-LCHlch(21.51, 78.62, 306.01°)
OKLaboklab(34.42% 0.0258 -0.1837)
OKLCHoklch(34.42% 0.186 278)
XYZxyz(6.8319, 3.3805, 28.7204)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1895 #809518
analogous
#184295 #2D1895 #6C1895
triadic
#2D1895 #952D18 #18952D
tetradic
#2D1895 #951842 #809518 #18956C
square
#2D1895 #951842 #809518 #18956C
split-complementary
#2D1895 #956C18 #429518
monochromatic
#0D072C #1D1060 #2D1895 #3D20CA #6046E1

Accessibility & contrast

On white

12.53
#2D1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1895
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1895#FFFFFF#000000##FFFFFF
##2D18951.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d1895;
/* rgb */ color: rgb(45, 24, 149);
/* oklch */ color: oklch(34.4% 0.186 278.0);
Tailwind
colors: {
  custom: {
    50: '#775ab5',
    500: '#2d1895',
    950: '#000000',
  },
}
SCSS
$custom: #2d1895;
$custom-light: #775ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1895",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 250.08,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34417,
    "c": 0.18551,
    "h": 278
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#2D1895
secondary
#AEC246
accent
#EF39D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1895

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

Preview Lab → · Contrast checker → · Palette generator →

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