#2B1974#2B1974

#2B1974 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.145 H 282.8°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2B1974
RGBrgb(43, 25, 116)
HSLhsl(252, 65%, 28%)
HSVhsv(252, 78%, 45%)
CMYKcmyk(62.9%, 78.4%, 0%, 54.5%)
CIE-LABlab(17.78, 35.21, -48.94)
CIE-LCHlch(17.78, 60.29, 305.74°)
OKLaboklab(30.68% 0.0321 -0.1411)
OKLCHoklch(30.68% 0.145 282.8)
XYZxyz(4.4953, 2.4695, 16.7594)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1974 #627419
analogous
#193574 #2B1974 #581974
triadic
#2B1974 #742B19 #19742B
tetradic
#2B1974 #741935 #627419 #197458
square
#2B1974 #741935 #627419 #197458
split-complementary
#2B1974 #745819 #357419
monochromatic
#090519 #180E42 #2B1974 #3E24A6 #5434D3

Accessibility & contrast

On white

14.06
#2B1974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1974
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1974#FFFFFF#000000##FFFFFF
##2B19741.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1974;
/* rgb */ color: rgb(43, 25, 116);
/* oklch */ color: oklch(30.7% 0.145 282.8);
Tailwind
colors: {
  custom: {
    50: '#6f589d',
    500: '#2b1974',
    950: '#000000',
  },
}
SCSS
$custom: #2b1974;
$custom-light: #6f589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1974",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 251.868,
    "s": 64.539,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3068,
    "c": 0.14471,
    "h": 282.8
  },
  "luminance": 0.0247
}

Semantic roles & 50–950 ramp

primary
#2B1974
secondary
#94A940
accent
#E840C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1974

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

Preview Lab → · Contrast checker → · Palette generator →

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