#2B1058#2B1058

#2B1058 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.119 H 293.6°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2B1058
RGBrgb(43, 16, 88)
HSLhsl(263, 69%, 20%)
HSVhsv(263, 82%, 35%)
CMYKcmyk(51.1%, 81.8%, 0%, 65.5%)
CIE-LABlab(13.16, 31.30, -38.06)
CIE-LCHlch(13.16, 49.28, 309.44°)
OKLaboklab(26.55% 0.0478 -0.1092)
OKLCHoklch(26.55% 0.119 293.6)
XYZxyz(2.9425, 1.5887, 9.3822)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1058 #3D5810
analogous
#101958 #2B1058 #4F1058
triadic
#2B1058 #582B10 #10582B
tetradic
#2B1058 #581019 #3D5810 #10584F
square
#2B1058 #581019 #3D5810 #10584F
split-complementary
#2B1058 #584F10 #195810
monochromatic
#0D051A #120724 #2B1058 #44198C #5E23C0

Accessibility & contrast

On white

15.94
#2B1058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B1058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1058
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1058#FFFFFF#000000##FFFFFF
##2B10581.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#1D2433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1058;
/* rgb */ color: rgb(43, 16, 88);
/* oklch */ color: oklch(26.6% 0.119 293.6);
Tailwind
colors: {
  custom: {
    50: '#6a5188',
    500: '#2b1058',
    950: '#000000',
  },
}
SCSS
$custom: #2b1058;
$custom-light: #6a5188;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1058",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 262.5,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26551,
    "c": 0.11918,
    "h": 293.6
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#2B1058
secondary
#6E9132
accent
#EC3CAA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1058

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

Preview Lab → · Contrast checker → · Palette generator →

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