#2B1180#2B1180

#2B1180 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.167 H 281.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#2B1180
RGBrgb(43, 17, 128)
HSLhsl(254, 77%, 28%)
HSVhsv(254, 87%, 50%)
CMYKcmyk(66.4%, 86.7%, 0%, 49.8%)
CIE-LABlab(17.79, 42.82, -56.60)
CIE-LCHlch(17.79, 70.97, 307.11°)
OKLaboklab(31.09% 0.0329 -0.1633)
OKLCHoklch(31.09% 0.167 281.4)
XYZxyz(5.0918, 2.4726, 20.6268)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1180 #668011
analogous
#112E80 #2B1180 #621180
triadic
#2B1180 #802B11 #11802B
tetradic
#2B1180 #80112E #668011 #118062
square
#2B1180 #80112E #668011 #118062
split-complementary
#2B1180 #806211 #2E8011
monochromatic
#09041B #190A4A #2B1180 #3D18B6 #5429E3

Accessibility & contrast

On white

14.05
#2B1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1180
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1180#FFFFFF#000000##FFFFFF
##2B11801.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1180;
/* rgb */ color: rgb(43, 17, 128);
/* oklch */ color: oklch(31.1% 0.167 281.4);
Tailwind
colors: {
  custom: {
    50: '#7255a6',
    500: '#2b1180',
    950: '#000000',
  },
}
SCSS
$custom: #2b1180;
$custom-light: #7255a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1180",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 254.054,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31092,
    "c": 0.1666,
    "h": 281.4
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#2B1180
secondary
#98B637
accent
#F335C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B1180

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

Preview Lab → · Contrast checker → · Palette generator →

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