#2B1675#2B1675

#2B1675 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.149 H 283.2°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#2B1675
RGBrgb(43, 22, 117)
HSLhsl(253, 68%, 27%)
HSVhsv(253, 81%, 46%)
CMYKcmyk(63.2%, 81.2%, 0%, 54.1%)
CIE-LABlab(17.33, 37.14, -50.33)
CIE-LCHlch(17.33, 62.55, 306.42°)
OKLaboklab(30.4% 0.0339 -0.1451)
OKLCHoklch(30.4% 0.149 283.2)
XYZxyz(4.4931, 2.3715, 17.0471)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1675 #607516
analogous
#163175 #2B1675 #5A1675
triadic
#2B1675 #752B16 #16752B
tetradic
#2B1675 #751631 #607516 #16755A
square
#2B1675 #751631 #607516 #16755A
split-complementary
#2B1675 #755A16 #317516
monochromatic
#09051A #180C41 #2B1675 #3E20A9 #532ED8

Accessibility & contrast

On white

14.24
#2B1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2B1675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1675
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1675#FFFFFF#000000##FFFFFF
##2B16751.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1675;
/* rgb */ color: rgb(43, 22, 117);
/* oklch */ color: oklch(30.4% 0.149 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f579e',
    500: '#2b1675',
    950: '#000000',
  },
}
SCSS
$custom: #2b1675;
$custom-light: #6f579e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1675",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 253.263,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30395,
    "c": 0.14905,
    "h": 283.2
  },
  "luminance": 0.02372
}

Semantic roles & 50–950 ramp

primary
#2B1675
secondary
#92AB3C
accent
#EB3DC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1675

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

Preview Lab → · Contrast checker → · Palette generator →

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