#2B135D#2B135D

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

Color values

HEX#2B135D
RGBrgb(43, 19, 93)
HSLhsl(259, 66%, 22%)
HSVhsv(259, 80%, 36%)
CMYKcmyk(53.8%, 79.6%, 0%, 63.5%)
CIE-LABlab(14.23, 31.23, -39.67)
CIE-LCHlch(14.23, 50.49, 308.21°)
OKLaboklab(27.46% 0.0435 -0.1139)
OKLCHoklch(27.46% 0.122 290.9)
XYZxyz(3.2044, 1.7695, 10.5265)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B135D #455D13
analogous
#13205D #2B135D #50135D
triadic
#2B135D #5D2B13 #135D2B
tetradic
#2B135D #5D1320 #455D13 #135D50
square
#2B135D #5D1320 #455D13 #135D50
split-complementary
#2B135D #5D5013 #205D13
monochromatic
#0C0519 #14092A #2B135D #421D90 #5A28C3

Accessibility & contrast

On white

15.51
#2B135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B135D
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B135D#FFFFFF#000000##FFFFFF
##2B135D1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1A2737
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b135d;
/* rgb */ color: rgb(43, 19, 93);
/* oklch */ color: oklch(27.5% 0.122 290.9);
Tailwind
colors: {
  custom: {
    50: '#6b538c',
    500: '#2b135d',
    950: '#000000',
  },
}
SCSS
$custom: #2b135d;
$custom-light: #6b538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b135d",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 259.459,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27455,
    "c": 0.12197,
    "h": 290.9
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#2B135D
secondary
#769537
accent
#E93FB2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B135D

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

Preview Lab → · Contrast checker → · Palette generator →

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