#2B1064#2B1064

#2B1064 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.134 H 289.1°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2B1064
RGBrgb(43, 16, 100)
HSLhsl(259, 72%, 23%)
HSVhsv(259, 84%, 39%)
CMYKcmyk(57%, 84%, 0%, 60.8%)
CIE-LABlab(14.42, 34.91, -44.01)
CIE-LCHlch(14.42, 56.18, 308.42°)
OKLaboklab(27.82% 0.0438 -0.1266)
OKLCHoklch(27.82% 0.134 289.1)
XYZxyz(3.4811, 1.8041, 12.2189)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1064 #496410
analogous
#101F64 #2B1064 #551064
triadic
#2B1064 #642B10 #10642B
tetradic
#2B1064 #64101F #496410 #106455
square
#2B1064 #64101F #496410 #106455
split-complementary
#2B1064 #645510 #1F6410
monochromatic
#0B041A #14082F #2B1064 #421899 #5821CE

Accessibility & contrast

On white

15.43
#2B1064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B1064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1064
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1064#FFFFFF#000000##FFFFFF
##2B10641.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002262
Tritanopia (blue-blind)
#14293A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1064;
/* rgb */ color: rgb(43, 16, 100);
/* oklch */ color: oklch(27.8% 0.134 289.1);
Tailwind
colors: {
  custom: {
    50: '#6c5291',
    500: '#2b1064',
    950: '#000000',
  },
}
SCSS
$custom: #2b1064;
$custom-light: #6c5291;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1064",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 259.286,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27815,
    "c": 0.13398,
    "h": 289.1
  },
  "luminance": 0.01804
}

Semantic roles & 50–950 ramp

primary
#2B1064
secondary
#7B9D33
accent
#EF39B4
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #2B1064

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

Preview Lab → · Contrast checker → · Palette generator →

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