#2D0F58#2D0F58

#2D0F58 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.120 H 295.6°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#2D0F58
RGBrgb(45, 15, 88)
HSLhsl(265, 71%, 20%)
HSVhsv(265, 83%, 35%)
CMYKcmyk(48.9%, 83%, 0%, 65.5%)
CIE-LABlab(13.25, 32.16, -37.90)
CIE-LCHlch(13.25, 49.70, 310.32°)
OKLaboklab(26.68% 0.0521 -0.1086)
OKLCHoklch(26.68% 0.12 295.6)
XYZxyz(3.0140, 1.6040, 9.3814)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F58 #3A580F
analogous
#0F1558 #2D0F58 #520F58
triadic
#2D0F58 #582D0F #0F582D
tetradic
#2D0F58 #580F15 #3A580F #0F5852
square
#2D0F58 #580F15 #3A580F #0F5852
split-complementary
#2D0F58 #58520F #15580F
monochromatic
#0D041A #120624 #2D0F58 #48188C #6221C1

Accessibility & contrast

On white

15.90
#2D0F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D0F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F58
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F58#FFFFFF#000000##FFFFFF
##2D0F581.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#212333
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d0f58;
/* rgb */ color: rgb(45, 15, 88);
/* oklch */ color: oklch(26.7% 0.120 295.6);
Tailwind
colors: {
  custom: {
    50: '#6b5188',
    500: '#2d0f58',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f58;
$custom-light: #6b5188;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f58",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 264.658,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26677,
    "c": 0.12046,
    "h": 295.6
  },
  "luminance": 0.01604
}

Semantic roles & 50–950 ramp

primary
#2D0F58
secondary
#6A9231
accent
#EE3AA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0F58

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

Preview Lab → · Contrast checker → · Palette generator →

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