#2B135C#2B135C

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

Color values

HEX#2B135C
RGBrgb(43, 19, 92)
HSLhsl(260, 66%, 22%)
HSVhsv(260, 79%, 36%)
CMYKcmyk(53.3%, 79.3%, 0%, 63.9%)
CIE-LABlab(14.13, 30.92, -39.17)
CIE-LCHlch(14.13, 49.90, 308.29°)
OKLaboklab(27.35% 0.0438 -0.1124)
OKLCHoklch(27.35% 0.121 291.3)
XYZxyz(3.1604, 1.7519, 10.2948)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B135C #445C13
analogous
#13205C #2B135C #50135C
triadic
#2B135C #5C2B13 #135C2B
tetradic
#2B135C #5C1320 #445C13 #135C50
square
#2B135C #5C1320 #445C13 #135C50
split-complementary
#2B135C #5C5013 #205C13
monochromatic
#0C0519 #130929 #2B135C #431D8F #5A28C1

Accessibility & contrast

On white

15.55
#2B135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B135C
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B135C#FFFFFF#000000##FFFFFF
##2B135C1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b135c;
/* rgb */ color: rgb(43, 19, 92);
/* oklch */ color: oklch(27.4% 0.121 291.3);
Tailwind
colors: {
  custom: {
    50: '#6a538b',
    500: '#2b135c',
    950: '#000000',
  },
}
SCSS
$custom: #2b135c;
$custom-light: #6a538b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b135c",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 259.726,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27354,
    "c": 0.12069,
    "h": 291.3
  },
  "luminance": 0.01752
}

Semantic roles & 50–950 ramp

primary
#2B135C
secondary
#759437
accent
#E93FB1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B135C

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

Preview Lab → · Contrast checker → · Palette generator →

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