#2B165A#2B165A

#2B165A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.114 H 291.2°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2B165A
RGBrgb(43, 22, 90)
HSLhsl(259, 61%, 22%)
HSVhsv(259, 76%, 35%)
CMYKcmyk(52.2%, 75.6%, 0%, 64.7%)
CIE-LABlab(14.54, 28.58, -37.15)
CIE-LCHlch(14.54, 46.87, 307.57°)
OKLaboklab(27.59% 0.0413 -0.1065)
OKLCHoklch(27.59% 0.114 291.2)
XYZxyz(3.1281, 1.8255, 9.8584)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B165A #455A16
analogous
#16235A #2B165A #4D165A
triadic
#2B165A #5A2B16 #165A2B
tetradic
#2B165A #5A1623 #455A16 #165A4D
square
#2B165A #5A1623 #455A16 #165A4D
split-complementary
#2B165A #5A4D16 #235A16
monochromatic
#0C0619 #140A29 #2B165A #42228B #5A2EBC

Accessibility & contrast

On white

15.38
#2B165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B165A
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B165A#FFFFFF#000000##FFFFFF
##2B165A1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b165a;
/* rgb */ color: rgb(43, 22, 90);
/* oklch */ color: oklch(27.6% 0.114 291.2);
Tailwind
colors: {
  custom: {
    50: '#6a5589',
    500: '#2b165a',
    950: '#000000',
  },
}
SCSS
$custom: #2b165a;
$custom-light: #6a5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2b165a",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 258.529,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27588,
    "c": 0.11425,
    "h": 291.2
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#2B165A
secondary
#76913B
accent
#E444B2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B165A

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

Preview Lab → · Contrast checker → · Palette generator →

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