#2D2261#2D2261

#2D2261 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.5% C 0.107 H 286.2°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2D2261
RGBrgb(45, 34, 97)
HSLhsl(250, 48%, 26%)
HSVhsv(250, 65%, 38%)
CMYKcmyk(53.6%, 64.9%, 0%, 62%)
CIE-LABlab(18.21, 23.68, -35.83)
CIE-LCHlch(18.21, 42.95, 303.46°)
OKLaboklab(30.48% 0.0298 -0.1026)
OKLCHoklch(30.48% 0.107 286.2)
XYZxyz(3.8112, 2.5648, 11.6012)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2261 #566122
analogous
#223661 #2D2261 #4C2261
triadic
#2D2261 #612D22 #22612D
tetradic
#2D2261 #612236 #566122 #22614C
square
#2D2261 #612236 #566122 #22614C
split-complementary
#2D2261 #614C22 #366122
monochromatic
#0B0817 #181234 #2D2261 #42328E #5742BC

Accessibility & contrast

On white

13.88
#2D2261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2261
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2261#FFFFFF#000000##FFFFFF
##2D22611.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#1A313E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d2261;
/* rgb */ color: rgb(45, 34, 97);
/* oklch */ color: oklch(30.5% 0.107 286.2);
Tailwind
colors: {
  custom: {
    50: '#6b5d8e',
    500: '#2d2261',
    950: '#000000',
  },
}
SCSS
$custom: #2d2261;
$custom-light: #6b5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2261",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 97
  },
  "hsl": {
    "h": 250.476,
    "s": 48.092,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30484,
    "c": 0.10685,
    "h": 286.2
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#2D2261
secondary
#88954A
accent
#D850C0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D2261

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

Preview Lab → · Contrast checker → · Palette generator →

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