#2B135B#2B135B

#2B135B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.119 H 291.7°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2B135B
RGBrgb(43, 19, 91)
HSLhsl(260, 65%, 22%)
HSVhsv(260, 79%, 36%)
CMYKcmyk(52.7%, 79.1%, 0%, 64.3%)
CIE-LABlab(14.03, 30.61, -38.66)
CIE-LCHlch(14.03, 49.31, 308.37°)
OKLaboklab(27.25% 0.0441 -0.111)
OKLCHoklch(27.25% 0.119 291.7)
XYZxyz(3.1169, 1.7346, 10.0661)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B135B #435B13
analogous
#131F5B #2B135B #4F135B
triadic
#2B135B #5B2B13 #135B2B
tetradic
#2B135B #5B131F #435B13 #135B4F
square
#2B135B #5B131F #435B13 #135B4F
split-complementary
#2B135B #5B4F13 #1F5B13
monochromatic
#0C0519 #130828 #2B135B #431E8E #5B28C0

Accessibility & contrast

On white

15.59
#2B135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B135B
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B135B#FFFFFF#000000##FFFFFF
##2B135B1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#1B2636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b135b;
/* rgb */ color: rgb(43, 19, 91);
/* oklch */ color: oklch(27.3% 0.119 291.7);
Tailwind
colors: {
  custom: {
    50: '#6a538a',
    500: '#2b135b',
    950: '#000000',
  },
}
SCSS
$custom: #2b135b;
$custom-light: #6a538a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b135b",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 260,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27253,
    "c": 0.1194,
    "h": 291.7
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#2B135B
secondary
#749337
accent
#E83FB0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B135B

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

Preview Lab → · Contrast checker → · Palette generator →

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