#2D1258#2D1258

#2D1258 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.117 H 294.9°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1258
RGBrgb(45, 18, 88)
HSLhsl(263, 66%, 21%)
HSVhsv(263, 80%, 35%)
CMYKcmyk(48.9%, 79.5%, 0%, 65.5%)
CIE-LABlab(13.80, 30.61, -37.01)
CIE-LCHlch(13.80, 48.03, 309.60°)
OKLaboklab(27.06% 0.0492 -0.106)
OKLCHoklch(27.06% 0.117 294.9)
XYZxyz(3.0595, 1.6950, 9.3966)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1258 #3D5812
analogous
#121A58 #2D1258 #501258
triadic
#2D1258 #582D12 #12582D
tetradic
#2D1258 #58121A #3D5812 #125850
square
#2D1258 #58121A #3D5812 #125850
split-complementary
#2D1258 #585012 #1A5812
monochromatic
#0D0519 #130825 #2D1258 #471C8B #6127BE

Accessibility & contrast

On white

15.68
#2D1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1258
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1258#FFFFFF#000000##FFFFFF
##2D12581.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#212434
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d1258;
/* rgb */ color: rgb(45, 18, 88);
/* oklch */ color: oklch(27.1% 0.117 294.9);
Tailwind
colors: {
  custom: {
    50: '#6b5388',
    500: '#2d1258',
    950: '#000000',
  },
}
SCSS
$custom: #2d1258;
$custom-light: #6b5388;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1258",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 263.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27059,
    "c": 0.1169,
    "h": 294.9
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#2D1258
secondary
#6D9135
accent
#E93FA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1258

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

Preview Lab → · Contrast checker → · Palette generator →

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