#2B185B#2B185B

#2B185B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.113 H 290.2°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#2B185B
RGBrgb(43, 24, 91)
HSLhsl(257, 58%, 23%)
HSVhsv(257, 74%, 36%)
CMYKcmyk(52.7%, 73.6%, 0%, 64.3%)
CIE-LABlab(15.07, 27.70, -36.95)
CIE-LCHlch(15.07, 46.18, 306.85°)
OKLaboklab(28% 0.0389 -0.106)
OKLCHoklch(28% 0.113 290.2)
XYZxyz(3.2107, 1.9221, 10.0973)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B185B #485B18
analogous
#18265B #2B185B #4D185B
triadic
#2B185B #5B2B18 #185B2B
tetradic
#2B185B #5B1826 #485B18 #185B4D
square
#2B185B #5B1826 #485B18 #185B4D
split-complementary
#2B185B #5B4D18 #265B18
monochromatic
#0B0618 #140B2B #2B185B #42258B #5932BC

Accessibility & contrast

On white

15.17
#2B185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B185B
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B185B#FFFFFF#000000##FFFFFF
##2B185B1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#1B2937
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b185b;
/* rgb */ color: rgb(43, 24, 91);
/* oklch */ color: oklch(28.0% 0.113 290.2);
Tailwind
colors: {
  custom: {
    50: '#6a568a',
    500: '#2b185b',
    950: '#000000',
  },
}
SCSS
$custom: #2b185b;
$custom-light: #6a568a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b185b",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 257.015,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27996,
    "c": 0.1129,
    "h": 290.2
  },
  "luminance": 0.01922
}

Semantic roles & 50–950 ramp

primary
#2B185B
secondary
#7A923D
accent
#E146B5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B185B

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

Preview Lab → · Contrast checker → · Palette generator →

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