#2B1966#2B1966

#2B1966 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.126 H 286.4°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2B1966
RGBrgb(43, 25, 102)
HSLhsl(254, 61%, 25%)
HSVhsv(254, 75%, 40%)
CMYKcmyk(57.8%, 75.5%, 0%, 60%)
CIE-LABlab(16.35, 30.67, -42.18)
CIE-LCHlch(16.35, 52.15, 306.02°)
OKLaboklab(29.23% 0.0356 -0.1213)
OKLCHoklch(29.23% 0.126 286.4)
XYZxyz(3.7414, 2.1680, 12.7891)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1966 #546619
analogous
#192E66 #2B1966 #521966
triadic
#2B1966 #662B19 #19662B
tetradic
#2B1966 #66192E #546619 #196652
square
#2B1966 #66192E #546619 #196652
split-complementary
#2B1966 #665219 #2E6619
monochromatic
#0A0619 #160D35 #2B1966 #402597 #5431C8

Accessibility & contrast

On white

14.65
#2B1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1966
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1966#FFFFFF#000000##FFFFFF
##2B19661.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#122D3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1966;
/* rgb */ color: rgb(43, 25, 102);
/* oklch */ color: oklch(29.2% 0.126 286.4);
Tailwind
colors: {
  custom: {
    50: '#6c5792',
    500: '#2b1966',
    950: '#000000',
  },
}
SCSS
$custom: #2b1966;
$custom-light: #6c5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1966",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 254.026,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29229,
    "c": 0.12644,
    "h": 286.4
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#2B1966
secondary
#869C3F
accent
#E444BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1966

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

Preview Lab → · Contrast checker → · Palette generator →

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