#2B155E#2B155E

#2B155E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.8% C 0.121 H 290.0°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2B155E
RGBrgb(43, 21, 94)
HSLhsl(258, 63%, 23%)
HSVhsv(258, 78%, 37%)
CMYKcmyk(54.3%, 77.7%, 0%, 63.1%)
CIE-LABlab(14.72, 30.43, -39.53)
CIE-LCHlch(14.72, 49.89, 307.58°)
OKLaboklab(27.84% 0.0414 -0.1135)
OKLCHoklch(27.84% 0.121 290)
XYZxyz(3.2842, 1.8579, 10.7731)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B155E #485E15
analogous
#15245E #2B155E #4F155E
triadic
#2B155E #5E2B15 #155E2B
tetradic
#2B155E #5E1524 #485E15 #155E4F
square
#2B155E #5E1524 #485E15 #155E4F
split-complementary
#2B155E #5E4F15 #245E15
monochromatic
#0B0619 #140A2C #2B155E #422090 #592BC2

Accessibility & contrast

On white

15.31
#2B155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2B155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B155E
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B155E#FFFFFF#000000##FFFFFF
##2B155E1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#192838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b155e;
/* rgb */ color: rgb(43, 21, 94);
/* oklch */ color: oklch(27.8% 0.121 290.0);
Tailwind
colors: {
  custom: {
    50: '#6b558c',
    500: '#2b155e',
    950: '#000000',
  },
}
SCSS
$custom: #2b155e;
$custom-light: #6b558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b155e",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 258.082,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27836,
    "c": 0.12082,
    "h": 290
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#2B155E
secondary
#7A9539
accent
#E741B5
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B155E

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

Preview Lab → · Contrast checker → · Palette generator →

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