#2D2260#2D2260

#2D2260 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.105 H 286.5°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2D2260
RGBrgb(45, 34, 96)
HSLhsl(251, 48%, 25%)
HSVhsv(251, 65%, 38%)
CMYKcmyk(53.1%, 64.6%, 0%, 62.4%)
CIE-LABlab(18.13, 23.34, -35.31)
CIE-LCHlch(18.13, 42.33, 303.47°)
OKLaboklab(30.4% 0.0299 -0.101)
OKLCHoklch(30.4% 0.105 286.5)
XYZxyz(3.7649, 2.5463, 11.3572)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2260 #556022
analogous
#223660 #2D2260 #4C2260
triadic
#2D2260 #602D22 #22602D
tetradic
#2D2260 #602236 #556022 #22604C
square
#2D2260 #602236 #556022 #22604C
split-complementary
#2D2260 #604C22 #366022
monochromatic
#0B0817 #181233 #2D2260 #42328D #5742BA

Accessibility & contrast

On white

13.91
#2D2260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2260
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2260#FFFFFF#000000##FFFFFF
##2D22601.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E62
Deuteranopia (green-blind)
#002B5F
Tritanopia (blue-blind)
#1B303D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d2260;
/* rgb */ color: rgb(45, 34, 96);
/* oklch */ color: oklch(30.4% 0.105 286.5);
Tailwind
colors: {
  custom: {
    50: '#6b5d8e',
    500: '#2d2260',
    950: '#000000',
  },
}
SCSS
$custom: #2d2260;
$custom-light: #6b5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2260",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 96
  },
  "hsl": {
    "h": 250.645,
    "s": 47.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30397,
    "c": 0.10538,
    "h": 286.5
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#2D2260
secondary
#87944A
accent
#D751BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D2260

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

Preview Lab → · Contrast checker → · Palette generator →

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