#2D2149#2D2149

#2D2149 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.072 H 295.3°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2D2149
RGBrgb(45, 33, 73)
HSLhsl(258, 38%, 21%)
HSVhsv(258, 55%, 29%)
CMYKcmyk(38.4%, 54.8%, 0%, 71.4%)
CIE-LABlab(16.14, 16.41, -23.01)
CIE-LCHlch(16.14, 28.26, 305.50°)
OKLaboklab(28.38% 0.0307 -0.0649)
OKLCHoklch(28.38% 0.072 295.3)
XYZxyz(2.8283, 2.1266, 6.5635)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2149 #3D4921
analogous
#212949 #2D2149 #412149
triadic
#2D2149 #492D21 #21492D
tetradic
#2D2149 #492129 #3D4921 #214941
square
#2D2149 #492129 #3D4921 #214941
split-complementary
#2D2149 #494121 #294921
monochromatic
#0D0A15 #130E1F #2D2149 #473473 #61479D

Accessibility & contrast

On white

14.73
#2D2149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D2149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2149
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2149#FFFFFF#000000##FFFFFF
##2D21491.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13284A
Deuteranopia (green-blind)
#152748
Tritanopia (blue-blind)
#272931
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d2149;
/* rgb */ color: rgb(45, 33, 73);
/* oklch */ color: oklch(28.4% 0.072 295.3);
Tailwind
colors: {
  custom: {
    50: '#685c7c',
    500: '#2d2149',
    950: '#000000',
  },
}
SCSS
$custom: #2d2149;
$custom-light: #685c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2149",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 73
  },
  "hsl": {
    "h": 258,
    "s": 37.736,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28376,
    "c": 0.0718,
    "h": 295.3
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#2D2149
secondary
#6D7D49
accent
#CE5AAB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2D2149

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

Preview Lab → · Contrast checker → · Palette generator →

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