#2D135D#2D135D

#2D135D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.122 H 292.6°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#2D135D
RGBrgb(45, 19, 93)
HSLhsl(261, 66%, 22%)
HSVhsv(261, 80%, 36%)
CMYKcmyk(51.6%, 79.6%, 0%, 63.5%)
CIE-LABlab(14.48, 31.58, -39.26)
CIE-LCHlch(14.48, 50.38, 308.82°)
OKLaboklab(27.69% 0.0469 -0.1126)
OKLCHoklch(27.69% 0.122 292.6)
XYZxyz(3.2903, 1.8138, 10.5305)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D135D #435D13
analogous
#131E5D #2D135D #52135D
triadic
#2D135D #5D2D13 #135D2D
tetradic
#2D135D #5D131E #435D13 #135D52
square
#2D135D #5D131E #435D13 #135D52
split-complementary
#2D135D #5D5213 #1E5D13
monochromatic
#0C0519 #14092A #2D135D #461D90 #5E28C3

Accessibility & contrast

On white

15.41
#2D135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D135D
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D135D#FFFFFF#000000##FFFFFF
##2D135D1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#1E2737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d135d;
/* rgb */ color: rgb(45, 19, 93);
/* oklch */ color: oklch(27.7% 0.122 292.6);
Tailwind
colors: {
  custom: {
    50: '#6c548c',
    500: '#2d135d',
    950: '#000000',
  },
}
SCSS
$custom: #2d135d;
$custom-light: #6c548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d135d",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 261.081,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27689,
    "c": 0.12199,
    "h": 292.6
  },
  "luminance": 0.01814
}

Semantic roles & 50–950 ramp

primary
#2D135D
secondary
#749537
accent
#E93FAD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D135D

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

Preview Lab → · Contrast checker → · Palette generator →

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