#2B1970#2B1970

#2B1970 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.140 H 283.8°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2B1970
RGBrgb(43, 25, 112)
HSLhsl(252, 64%, 27%)
HSVhsv(252, 78%, 44%)
CMYKcmyk(61.6%, 77.7%, 0%, 56.1%)
CIE-LABlab(17.36, 33.92, -47.05)
CIE-LCHlch(17.36, 58.00, 305.79°)
OKLaboklab(30.26% 0.0332 -0.1356)
OKLCHoklch(30.26% 0.14 283.8)
XYZxyz(4.2676, 2.3784, 15.5603)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1970 #5E7019
analogous
#193370 #2B1970 #571970
triadic
#2B1970 #702B19 #19702B
tetradic
#2B1970 #701933 #5E7019 #197057
square
#2B1970 #701933 #5E7019 #197057
split-complementary
#2B1970 #705719 #337019
monochromatic
#0A0619 #180E3E #2B1970 #3E24A2 #5332D1

Accessibility & contrast

On white

14.23
#2B1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1970
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1970#FFFFFF#000000##FFFFFF
##2B19701.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#023143
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1970;
/* rgb */ color: rgb(43, 25, 112);
/* oklch */ color: oklch(30.3% 0.140 283.8);
Tailwind
colors: {
  custom: {
    50: '#6e589a',
    500: '#2b1970',
    950: '#000000',
  },
}
SCSS
$custom: #2b1970;
$custom-light: #6e589a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1970",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 252.414,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30256,
    "c": 0.13956,
    "h": 283.8
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#2B1970
secondary
#90A540
accent
#E741C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1970

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

Preview Lab → · Contrast checker → · Palette generator →

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