#2B1869#2B1869

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

Color values

HEX#2B1869
RGBrgb(43, 24, 105)
HSLhsl(254, 63%, 25%)
HSVhsv(254, 77%, 41%)
CMYKcmyk(59%, 77.1%, 0%, 58.8%)
CIE-LABlab(16.44, 32.22, -44.00)
CIE-LCHlch(16.44, 54.54, 306.22°)
OKLaboklab(29.39% 0.0358 -0.1266)
OKLCHoklch(29.39% 0.132 285.8)
XYZxyz(3.8719, 2.1866, 13.5799)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1869 #566918
analogous
#182D69 #2B1869 #531869
triadic
#2B1869 #692B18 #18692B
tetradic
#2B1869 #69182D #566918 #186953
square
#2B1869 #69182D #566918 #186953
split-complementary
#2B1869 #695318 #2D6918
monochromatic
#0A0619 #170D37 #2B1869 #3F239B #542FCD

Accessibility & contrast

On white

14.61
#2B1869 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1869
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1869#FFFFFF#000000##FFFFFF
##2B18691.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#0E2E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1869;
/* rgb */ color: rgb(43, 24, 105);
/* oklch */ color: oklch(29.4% 0.132 285.8);
Tailwind
colors: {
  custom: {
    50: '#6c5795',
    500: '#2b1869',
    950: '#000000',
  },
}
SCSS
$custom: #2b1869;
$custom-light: #6c5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1869",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 105
  },
  "hsl": {
    "h": 254.074,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29386,
    "c": 0.1316,
    "h": 285.8
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#2B1869
secondary
#889F3E
accent
#E642BF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1869

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

Preview Lab → · Contrast checker → · Palette generator →

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