#2B1968#2B1968

#2B1968 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.129 H 285.8°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2B1968
RGBrgb(43, 25, 104)
HSLhsl(254, 61%, 25%)
HSVhsv(254, 76%, 41%)
CMYKcmyk(58.7%, 76%, 0%, 59.2%)
CIE-LABlab(16.54, 31.32, -43.17)
CIE-LCHlch(16.54, 53.33, 305.96°)
OKLaboklab(29.43% 0.0352 -0.1242)
OKLCHoklch(29.43% 0.129 285.8)
XYZxyz(3.8418, 2.2081, 13.3178)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1968 #566819
analogous
#192E68 #2B1968 #521968
triadic
#2B1968 #682B19 #19682B
tetradic
#2B1968 #68192E #566819 #196852
square
#2B1968 #68192E #566819 #196852
split-complementary
#2B1968 #685219 #2E6819
monochromatic
#0A0619 #170D37 #2B1968 #3F2599 #5431CB

Accessibility & contrast

On white

14.57
#2B1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1968
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1968#FFFFFF#000000##FFFFFF
##2B19681.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#0F2E3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1968;
/* rgb */ color: rgb(43, 25, 104);
/* oklch */ color: oklch(29.4% 0.129 285.8);
Tailwind
colors: {
  custom: {
    50: '#6c5894',
    500: '#2b1968',
    950: '#000000',
  },
}
SCSS
$custom: #2b1968;
$custom-light: #6c5894;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1968",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 253.671,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29431,
    "c": 0.1291,
    "h": 285.8
  },
  "luminance": 0.02208
}

Semantic roles & 50–950 ramp

primary
#2B1968
secondary
#889E3F
accent
#E443C0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1968

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

Preview Lab → · Contrast checker → · Palette generator →

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