#2D135A#2D135A

#2D135A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.118 H 293.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#2D135A
RGBrgb(45, 19, 90)
HSLhsl(262, 65%, 21%)
HSVhsv(262, 79%, 35%)
CMYKcmyk(50%, 78.9%, 0%, 64.7%)
CIE-LABlab(14.18, 30.67, -37.72)
CIE-LCHlch(14.18, 48.62, 309.12°)
OKLaboklab(27.39% 0.0477 -0.1081)
OKLCHoklch(27.39% 0.118 293.8)
XYZxyz(3.1600, 1.7617, 9.8444)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D135A #405A13
analogous
#131D5A #2D135A #51135A
triadic
#2D135A #5A2D13 #135A2D
tetradic
#2D135A #5A131D #405A13 #135A51
square
#2D135A #5A131D #405A13 #135A51
split-complementary
#2D135A #5A5113 #1D5A13
monochromatic
#0D0519 #140827 #2D135A #461E8D #6028BF

Accessibility & contrast

On white

15.53
#2D135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D135A
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D135A#FFFFFF#000000##FFFFFF
##2D135A1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#202635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d135a;
/* rgb */ color: rgb(45, 19, 90);
/* oklch */ color: oklch(27.4% 0.118 293.8);
Tailwind
colors: {
  custom: {
    50: '#6b5389',
    500: '#2d135a',
    950: '#000000',
  },
}
SCSS
$custom: #2d135a;
$custom-light: #6b5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2d135a",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 261.972,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27391,
    "c": 0.11818,
    "h": 293.8
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#2D135A
secondary
#719237
accent
#E840AA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D135A

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

Preview Lab → · Contrast checker → · Palette generator →

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