#2B1275#2B1275

#2B1275 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.153 H 283.8°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2B1275
RGBrgb(43, 18, 117)
HSLhsl(255, 73%, 26%)
HSVhsv(255, 85%, 46%)
CMYKcmyk(63.2%, 84.6%, 0%, 54.1%)
CIE-LABlab(16.65, 39.10, -51.45)
CIE-LCHlch(16.65, 64.62, 307.23°)
OKLaboklab(29.93% 0.0365 -0.1483)
OKLCHoklch(29.93% 0.153 283.8)
XYZxyz(4.4225, 2.2303, 17.0236)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1275 #5C7512
analogous
#122A75 #2B1275 #5D1275
triadic
#2B1275 #752B12 #12752B
tetradic
#2B1275 #75122A #5C7512 #12755D
square
#2B1275 #75122A #5C7512 #12755D
split-complementary
#2B1275 #755D12 #2A7512
monochromatic
#0A041B #180A40 #2B1275 #3E1AAA #5324DD

Accessibility & contrast

On white

14.52
#2B1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2B1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1275
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1275#FFFFFF#000000##FFFFFF
##2B12751.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002673
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1275;
/* rgb */ color: rgb(43, 18, 117);
/* oklch */ color: oklch(29.9% 0.153 283.8);
Tailwind
colors: {
  custom: {
    50: '#6f549e',
    500: '#2b1275',
    950: '#000000',
  },
}
SCSS
$custom: #2b1275;
$custom-light: #6f549e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1275",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 255.152,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29926,
    "c": 0.15274,
    "h": 283.8
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#2B1275
secondary
#8EAC37
accent
#F038C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1275

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

Preview Lab → · Contrast checker → · Palette generator →

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