#2D1248#2D1248

#2D1248 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.096 H 303.1°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#2D1248
RGBrgb(45, 18, 72)
HSLhsl(270, 60%, 18%)
HSVhsv(270, 75%, 28%)
CMYKcmyk(37.5%, 75%, 0%, 71.8%)
CIE-LABlab(12.34, 25.90, -28.41)
CIE-LCHlch(12.34, 38.45, 312.35°)
OKLaboklab(25.57% 0.0526 -0.0808)
OKLCHoklch(25.57% 0.096 303.1)
XYZxyz(2.4679, 1.4584, 6.2811)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1248 #2D4812
analogous
#121248 #2D1248 #481248
triadic
#2D1248 #482D12 #12482D
tetradic
#2D1248 #481212 #2D4812 #124848
square
#2D1248 #481212 #2D4812 #124848
split-complementary
#2D1248 #484812 #124812
monochromatic
#0F0618 #0F0618 #2D1248 #4C1E79 #6A2AAA

Accessibility & contrast

On white

16.26
#2D1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D1248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1248
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1248#FFFFFF#000000##FFFFFF
##2D12481.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#281E2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d1248;
/* rgb */ color: rgb(45, 18, 72);
/* oklch */ color: oklch(25.6% 0.096 303.1);
Tailwind
colors: {
  custom: {
    50: '#69527b',
    500: '#2d1248',
    950: '#000000',
  },
}
SCSS
$custom: #2d1248;
$custom-light: #69527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1248",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 270,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25568,
    "c": 0.09638,
    "h": 303.1
  },
  "luminance": 0.01458
}

Semantic roles & 50–950 ramp

primary
#2D1248
secondary
#5B8135
accent
#E34594
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1248

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

Preview Lab → · Contrast checker → · Palette generator →

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