#2B135A#2B135A

#2B135A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.118 H 292.1°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#2B135A
RGBrgb(43, 19, 90)
HSLhsl(260, 65%, 21%)
HSVhsv(260, 79%, 35%)
CMYKcmyk(52.2%, 78.9%, 0%, 64.7%)
CIE-LABlab(13.93, 30.30, -38.15)
CIE-LCHlch(13.93, 48.72, 308.46°)
OKLaboklab(27.15% 0.0444 -0.1095)
OKLCHoklch(27.15% 0.118 292.1)
XYZxyz(3.0741, 1.7174, 9.8404)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B135A #425A13
analogous
#131F5A #2B135A #4F135A
triadic
#2B135A #5A2B13 #135A2B
tetradic
#2B135A #5A131F #425A13 #135A4F
square
#2B135A #5A131F #425A13 #135A4F
split-complementary
#2B135A #5A4F13 #1F5A13
monochromatic
#0C0519 #130827 #2B135A #431E8D #5B28BF

Accessibility & contrast

On white

15.63
#2B135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B135A
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B135A#FFFFFF#000000##FFFFFF
##2B135A1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#1C2635
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b135a;
/* rgb */ color: rgb(43, 19, 90);
/* oklch */ color: oklch(27.2% 0.118 292.1);
Tailwind
colors: {
  custom: {
    50: '#6a5389',
    500: '#2b135a',
    950: '#000000',
  },
}
SCSS
$custom: #2b135a;
$custom-light: #6a5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2b135a",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 260.282,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27152,
    "c": 0.11811,
    "h": 292.1
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#2B135A
secondary
#739237
accent
#E840AF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B135A

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

Preview Lab → · Contrast checker → · Palette generator →

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