#2D135C#2D135C

#2D135C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.121 H 293.0°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2D135C
RGBrgb(45, 19, 92)
HSLhsl(261, 66%, 22%)
HSVhsv(261, 79%, 36%)
CMYKcmyk(51.1%, 79.3%, 0%, 63.9%)
CIE-LABlab(14.38, 31.28, -38.75)
CIE-LCHlch(14.38, 49.80, 308.91°)
OKLaboklab(27.59% 0.0472 -0.1111)
OKLCHoklch(27.59% 0.121 293)
XYZxyz(3.2463, 1.7962, 10.2988)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D135C #425C13
analogous
#131E5C #2D135C #52135C
triadic
#2D135C #5C2D13 #135C2D
tetradic
#2D135C #5C131E #425C13 #135C52
square
#2D135C #5C131E #425C13 #135C52
split-complementary
#2D135C #5C5213 #1E5C13
monochromatic
#0C0519 #140929 #2D135C #461D8F #5F28C1

Accessibility & contrast

On white

15.45
#2D135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D135C
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D135C#FFFFFF#000000##FFFFFF
##2D135C1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#1E2636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d135c;
/* rgb */ color: rgb(45, 19, 92);
/* oklch */ color: oklch(27.6% 0.121 293.0);
Tailwind
colors: {
  custom: {
    50: '#6c548b',
    500: '#2d135c',
    950: '#000000',
  },
}
SCSS
$custom: #2d135c;
$custom-light: #6c548b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d135c",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 261.37,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27589,
    "c": 0.12073,
    "h": 293
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#2D135C
secondary
#739437
accent
#E93FAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D135C

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

Preview Lab → · Contrast checker → · Palette generator →

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