#2B155A#2B155A

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

Color values

HEX#2B155A
RGBrgb(43, 21, 90)
HSLhsl(259, 62%, 22%)
HSVhsv(259, 77%, 35%)
CMYKcmyk(52.2%, 76.7%, 0%, 64.7%)
CIE-LABlab(14.33, 29.17, -37.49)
CIE-LCHlch(14.33, 47.50, 307.88°)
OKLaboklab(27.44% 0.0423 -0.1075)
OKLCHoklch(27.44% 0.116 291.5)
XYZxyz(3.1094, 1.7880, 9.8522)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B155A #445A15
analogous
#15225A #2B155A #4E155A
triadic
#2B155A #5A2B15 #155A2B
tetradic
#2B155A #5A1522 #445A15 #155A4E
square
#2B155A #5A1522 #445A15 #155A4E
split-complementary
#2B155A #5A4E15 #225A15
monochromatic
#0C0619 #130928 #2B155A #43218C #5A2CBD

Accessibility & contrast

On white

15.47
#2B155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B155A
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B155A#FFFFFF#000000##FFFFFF
##2B155A1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b155a;
/* rgb */ color: rgb(43, 21, 90);
/* oklch */ color: oklch(27.4% 0.116 291.5);
Tailwind
colors: {
  custom: {
    50: '#6a5489',
    500: '#2b155a',
    950: '#000000',
  },
}
SCSS
$custom: #2b155a;
$custom-light: #6a5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2b155a",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 259.13,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27439,
    "c": 0.11557,
    "h": 291.5
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#2B155A
secondary
#759239
accent
#E543B1
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B155A

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

Preview Lab → · Contrast checker → · Palette generator →

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