#2B165B#2B165B

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

Color values

HEX#2B165B
RGBrgb(43, 22, 91)
HSLhsl(258, 61%, 22%)
HSVhsv(258, 76%, 36%)
CMYKcmyk(52.7%, 75.8%, 0%, 64.3%)
CIE-LABlab(14.64, 28.90, -37.66)
CIE-LCHlch(14.64, 47.47, 307.50°)
OKLaboklab(27.69% 0.0411 -0.108)
OKLCHoklch(27.69% 0.116 290.8)
XYZxyz(3.1710, 1.8426, 10.0841)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B165B #465B16
analogous
#16245B #2B165B #4E165B
triadic
#2B165B #5B2B16 #165B2B
tetradic
#2B165B #5B1624 #465B16 #165B4E
square
#2B165B #5B1624 #465B16 #165B4E
split-complementary
#2B165B #5B4E16 #245B16
monochromatic
#0C0619 #140A2A #2B165B #42228C #5A2EBE

Accessibility & contrast

On white

15.34
#2B165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B165B
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B165B#FFFFFF#000000##FFFFFF
##2B165B1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#1B2836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b165b;
/* rgb */ color: rgb(43, 22, 91);
/* oklch */ color: oklch(27.7% 0.116 290.8);
Tailwind
colors: {
  custom: {
    50: '#6a558a',
    500: '#2b165b',
    950: '#000000',
  },
}
SCSS
$custom: #2b165b;
$custom-light: #6a558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b165b",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 258.261,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27686,
    "c": 0.11558,
    "h": 290.8
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#2B165B
secondary
#78923B
accent
#E444B3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B165B

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

Preview Lab → · Contrast checker → · Palette generator →

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