#2B155F#2B155F

#2B155F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.122 H 289.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2B155F
RGBrgb(43, 21, 95)
HSLhsl(258, 64%, 23%)
HSVhsv(258, 78%, 37%)
CMYKcmyk(54.7%, 77.9%, 0%, 62.7%)
CIE-LABlab(14.82, 30.74, -40.04)
CIE-LCHlch(14.82, 50.48, 307.52°)
OKLaboklab(27.94% 0.0411 -0.115)
OKLCHoklch(27.94% 0.122 289.7)
XYZxyz(3.3294, 1.8760, 11.0109)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B155F #495F15
analogous
#15245F #2B155F #50155F
triadic
#2B155F #5F2B15 #155F2B
tetradic
#2B155F #5F1524 #495F15 #155F50
square
#2B155F #5F1524 #495F15 #155F50
split-complementary
#2B155F #5F5015 #245F15
monochromatic
#0B0619 #140A2D #2B155F #422091 #582BC3

Accessibility & contrast

On white

15.27
#2B155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B155F
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B155F#FFFFFF#000000##FFFFFF
##2B155F1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#182938
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b155f;
/* rgb */ color: rgb(43, 21, 95);
/* oklch */ color: oklch(27.9% 0.122 289.7);
Tailwind
colors: {
  custom: {
    50: '#6b558d',
    500: '#2b155f',
    950: '#000000',
  },
}
SCSS
$custom: #2b155f;
$custom-light: #6b558d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b155f",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 257.838,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27936,
    "c": 0.12213,
    "h": 289.7
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#2B155F
secondary
#7B963A
accent
#E741B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B155F

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

Preview Lab → · Contrast checker → · Palette generator →

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