#2D1750#2D1750

#2D1750 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.099 H 297.0°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2D1750
RGBrgb(45, 23, 80)
HSLhsl(263, 55%, 20%)
HSVhsv(263, 71%, 31%)
CMYKcmyk(43.7%, 71.2%, 0%, 68.6%)
CIE-LABlab(14.12, 25.28, -31.06)
CIE-LCHlch(14.12, 40.04, 309.14°)
OKLaboklab(27.06% 0.0451 -0.0885)
OKLCHoklch(27.06% 0.099 297)
XYZxyz(2.8362, 1.7498, 7.7762)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1750 #3A5017
analogous
#171D50 #2D1750 #491750
triadic
#2D1750 #502D17 #17502D
tetradic
#2D1750 #50171D #3A5017 #175049
square
#2D1750 #50171D #3A5017 #175049
split-complementary
#2D1750 #504917 #1D5017
monochromatic
#0D0718 #120920 #2D1750 #482580 #6232AF

Accessibility & contrast

On white

15.56
#2D1750 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D1750 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1750
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1750#FFFFFF#000000##FFFFFF
##2D17501.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#242431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d1750;
/* rgb */ color: rgb(45, 23, 80);
/* oklch */ color: oklch(27.1% 0.099 297.0);
Tailwind
colors: {
  custom: {
    50: '#695582',
    500: '#2d1750',
    950: '#000000',
  },
}
SCSS
$custom: #2d1750;
$custom-light: #695582;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1750",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 80
  },
  "hsl": {
    "h": 263.158,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27058,
    "c": 0.09936,
    "h": 297
  },
  "luminance": 0.0175
}

Semantic roles & 50–950 ramp

primary
#2D1750
secondary
#6A873C
accent
#DF49A5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2D1750

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

Preview Lab → · Contrast checker → · Palette generator →

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