#2B1874#2B1874

#2B1874 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.146 H 283.0°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2B1874
RGBrgb(43, 24, 116)
HSLhsl(252, 66%, 27%)
HSVhsv(252, 79%, 45%)
CMYKcmyk(62.9%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.59, 35.76, -49.26)
CIE-LCHlch(17.59, 60.87, 305.98°)
OKLaboklab(30.54% 0.0329 -0.142)
OKLCHoklch(30.54% 0.146 283)
XYZxyz(4.4743, 2.4275, 16.7524)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1874 #617418
analogous
#183374 #2B1874 #591874
triadic
#2B1874 #742B18 #18742B
tetradic
#2B1874 #741833 #617418 #187459
square
#2B1874 #741833 #617418 #187459
split-complementary
#2B1874 #745918 #337418
monochromatic
#090519 #180E41 #2B1874 #3E22A7 #5332D5

Accessibility & contrast

On white

14.14
#2B1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1874
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1874#FFFFFF#000000##FFFFFF
##2B18741.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1874;
/* rgb */ color: rgb(43, 24, 116);
/* oklch */ color: oklch(30.5% 0.146 283.0);
Tailwind
colors: {
  custom: {
    50: '#6f589d',
    500: '#2b1874',
    950: '#000000',
  },
}
SCSS
$custom: #2b1874;
$custom-light: #6f589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1874",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 252.391,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30544,
    "c": 0.14576,
    "h": 283
  },
  "luminance": 0.02428
}

Semantic roles & 50–950 ramp

primary
#2B1874
secondary
#93A93F
accent
#E93FC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1874

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

Preview Lab → · Contrast checker → · Palette generator →

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