#2B165F#2B165F

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

Color values

HEX#2B165F
RGBrgb(43, 22, 95)
HSLhsl(257, 62%, 23%)
HSVhsv(257, 77%, 37%)
CMYKcmyk(54.7%, 76.8%, 0%, 62.7%)
CIE-LABlab(15.03, 30.17, -39.70)
CIE-LCHlch(15.03, 49.86, 307.23°)
OKLaboklab(28.08% 0.0402 -0.114)
OKLCHoklch(28.08% 0.121 289.4)
XYZxyz(3.3481, 1.9135, 11.0172)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B165F #4A5F16
analogous
#16265F #2B165F #4F165F
triadic
#2B165F #5F2B16 #165F2B
tetradic
#2B165F #5F1626 #4A5F16 #165F4F
square
#2B165F #5F1626 #4A5F16 #165F4F
split-complementary
#2B165F #5F4F16 #265F16
monochromatic
#0B0619 #150A2D #2B165F #412291 #582DC2

Accessibility & contrast

On white

15.19
#2B165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B165F
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B165F#FFFFFF#000000##FFFFFF
##2B165F1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#182939
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b165f;
/* rgb */ color: rgb(43, 22, 95);
/* oklch */ color: oklch(28.1% 0.121 289.4);
Tailwind
colors: {
  custom: {
    50: '#6b558d',
    500: '#2b165f',
    950: '#000000',
  },
}
SCSS
$custom: #2b165f;
$custom-light: #6b558d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b165f",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 257.26,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28081,
    "c": 0.12089,
    "h": 289.4
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#2B165F
secondary
#7C963B
accent
#E542B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B165F

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

Preview Lab → · Contrast checker → · Palette generator →

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