#2D2160#2D2160

#2D2160 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.107 H 286.9°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2D2160
RGBrgb(45, 33, 96)
HSLhsl(251, 49%, 25%)
HSVhsv(251, 66%, 38%)
CMYKcmyk(53.1%, 65.6%, 0%, 62.4%)
CIE-LABlab(17.87, 24.01, -35.72)
CIE-LCHlch(17.87, 43.04, 303.91°)
OKLaboklab(30.21% 0.0311 -0.1023)
OKLCHoklch(30.21% 0.107 286.9)
XYZxyz(3.7367, 2.4900, 11.3478)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2160 #546021
analogous
#213460 #2D2160 #4D2160
triadic
#2D2160 #602D21 #21602D
tetradic
#2D2160 #602134 #546021 #21604D
square
#2D2160 #602134 #546021 #21604D
split-complementary
#2D2160 #604D21 #346021
monochromatic
#0B0817 #181132 #2D2160 #42318E #5840BB

Accessibility & contrast

On white

14.02
#2D2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D2160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2160
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2160#FFFFFF#000000##FFFFFF
##2D21601.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2160;
/* rgb */ color: rgb(45, 33, 96);
/* oklch */ color: oklch(30.2% 0.107 286.9);
Tailwind
colors: {
  custom: {
    50: '#6b5d8e',
    500: '#2d2160',
    950: '#000000',
  },
}
SCSS
$custom: #2d2160;
$custom-light: #6b5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2160",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 251.429,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30212,
    "c": 0.10688,
    "h": 286.9
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#2D2160
secondary
#869449
accent
#D84FBE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D2160

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

Preview Lab → · Contrast checker → · Palette generator →

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