#2D2162#2D2162

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

Color values

HEX#2D2162
RGBrgb(45, 33, 98)
HSLhsl(251, 50%, 26%)
HSVhsv(251, 66%, 38%)
CMYKcmyk(54.1%, 66.3%, 0%, 61.6%)
CIE-LABlab(18.04, 24.69, -36.77)
CIE-LCHlch(18.04, 44.29, 303.88°)
OKLaboklab(30.39% 0.0309 -0.1053)
OKLCHoklch(30.39% 0.11 286.4)
XYZxyz(3.8300, 2.5273, 11.8389)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2162 #566221
analogous
#213562 #2D2162 #4D2162
triadic
#2D2162 #622D21 #21622D
tetradic
#2D2162 #622135 #566221 #21624D
square
#2D2162 #622135 #566221 #21624D
split-complementary
#2D2162 #624D21 #356221
monochromatic
#0B0817 #181234 #2D2162 #423090 #5740BE

Accessibility & contrast

On white

13.95
#2D2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2162
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2162#FFFFFF#000000##FFFFFF
##2D21621.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#19303E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d2162;
/* rgb */ color: rgb(45, 33, 98);
/* oklch */ color: oklch(30.4% 0.110 286.4);
Tailwind
colors: {
  custom: {
    50: '#6b5d8f',
    500: '#2d2162',
    950: '#000000',
  },
}
SCSS
$custom: #2d2162;
$custom-light: #6b5d8f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2162",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 251.077,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30388,
    "c": 0.1098,
    "h": 286.4
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#2D2162
secondary
#889649
accent
#D94FC0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D2162

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

Preview Lab → · Contrast checker → · Palette generator →

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