#2B165D#2B165D

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

Color values

HEX#2B165D
RGBrgb(43, 22, 93)
HSLhsl(258, 62%, 23%)
HSVhsv(258, 76%, 36%)
CMYKcmyk(53.8%, 76.3%, 0%, 63.5%)
CIE-LABlab(14.83, 29.53, -38.69)
CIE-LCHlch(14.83, 48.67, 307.36°)
OKLaboklab(27.88% 0.0406 -0.111)
OKLCHoklch(27.88% 0.118 290.1)
XYZxyz(3.2584, 1.8776, 10.5445)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B165D #485D16
analogous
#16255D #2B165D #4E165D
triadic
#2B165D #5D2B16 #165D2B
tetradic
#2B165D #5D1625 #485D16 #165D4E
square
#2B165D #5D1625 #485D16 #165D4E
split-complementary
#2B165D #5D4E16 #255D16
monochromatic
#0B0619 #140A2C #2B165D #42228E #592DC0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B165D#FFFFFF#000000##FFFFFF
##2B165D1.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)
#00275F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1A2938
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b165d;
/* rgb */ color: rgb(43, 22, 93);
/* oklch */ color: oklch(27.9% 0.118 290.1);
Tailwind
colors: {
  custom: {
    50: '#6a558c',
    500: '#2b165d',
    950: '#000000',
  },
}
SCSS
$custom: #2b165d;
$custom-light: #6a558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b165d",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 257.746,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27882,
    "c": 0.11825,
    "h": 290.1
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#2B165D
secondary
#7A943B
accent
#E543B5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B165D

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

Preview Lab → · Contrast checker → · Palette generator →

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