#2B1B68#2B1B68

#2B1B68 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.127 H 285.3°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2B1B68
RGBrgb(43, 27, 104)
HSLhsl(252, 59%, 26%)
HSVhsv(252, 74%, 41%)
CMYKcmyk(58.7%, 74%, 0%, 59.2%)
CIE-LABlab(16.97, 30.13, -42.46)
CIE-LCHlch(16.97, 52.07, 305.35°)
OKLaboklab(29.74% 0.0333 -0.1221)
OKLCHoklch(29.74% 0.127 285.3)
XYZxyz(3.8861, 2.2967, 13.3326)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B68 #58681B
analogous
#1B3168 #2B1B68 #511B68
triadic
#2B1B68 #682B1B #1B682B
tetradic
#2B1B68 #681B31 #58681B #1B6851
square
#2B1B68 #681B31 #58681B #1B6851
split-complementary
#2B1B68 #68511B #31681B
monochromatic
#0A0618 #170E37 #2B1B68 #3F2899 #5334C9

Accessibility & contrast

On white

14.39
#2B1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B1B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B68
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B68#FFFFFF#000000##FFFFFF
##2B1B681.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#0F2F3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1b68;
/* rgb */ color: rgb(43, 27, 104);
/* oklch */ color: oklch(29.7% 0.127 285.3);
Tailwind
colors: {
  custom: {
    50: '#6c5994',
    500: '#2b1b68',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b68;
$custom-light: #6c5994;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b68",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 252.468,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29736,
    "c": 0.12662,
    "h": 285.3
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#2B1B68
secondary
#8A9D42
accent
#E246C2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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