#2D1850#2D1850

#2D1850 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.098 H 296.6°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2D1850
RGBrgb(45, 24, 80)
HSLhsl(263, 54%, 20%)
HSVhsv(263, 70%, 31%)
CMYKcmyk(43.7%, 70%, 0%, 68.6%)
CIE-LABlab(14.35, 24.65, -30.68)
CIE-LCHlch(14.35, 39.36, 308.78°)
OKLaboklab(27.23% 0.0438 -0.0875)
OKLCHoklch(27.23% 0.098 296.6)
XYZxyz(2.8564, 1.7903, 7.7829)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1850 #3B5018
analogous
#181F50 #2D1850 #491850
triadic
#2D1850 #502D18 #18502D
tetradic
#2D1850 #50181F #3B5018 #185049
square
#2D1850 #50181F #3B5018 #185049
split-complementary
#2D1850 #504918 #1F5018
monochromatic
#0D0718 #130A21 #2D1850 #47267F #6234AE

Accessibility & contrast

On white

15.46
#2D1850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D1850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1850
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1850#FFFFFF#000000##FFFFFF
##2D18501.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#242531
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d1850;
/* rgb */ color: rgb(45, 24, 80);
/* oklch */ color: oklch(27.2% 0.098 296.6);
Tailwind
colors: {
  custom: {
    50: '#695681',
    500: '#2d1850',
    950: '#000000',
  },
}
SCSS
$custom: #2d1850;
$custom-light: #695681;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1850",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 262.5,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27225,
    "c": 0.09781,
    "h": 296.6
  },
  "luminance": 0.0179
}

Semantic roles & 50–950 ramp

primary
#2D1850
secondary
#6B873D
accent
#DD4BA6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2D1850

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

Preview Lab → · Contrast checker → · Palette generator →

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