#2D1180#2D1180

#2D1180 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.166 H 282.6°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2D1180
RGBrgb(45, 17, 128)
HSLhsl(255, 77%, 28%)
HSVhsv(255, 87%, 50%)
CMYKcmyk(64.8%, 86.7%, 0%, 49.8%)
CIE-LABlab(17.99, 43.01, -56.26)
CIE-LCHlch(17.99, 70.82, 307.40°)
OKLaboklab(31.28% 0.0362 -0.1623)
OKLCHoklch(31.28% 0.166 282.6)
XYZxyz(5.1777, 2.5169, 20.6309)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1180 #648011
analogous
#112C80 #2D1180 #641180
triadic
#2D1180 #802D11 #11802D
tetradic
#2D1180 #80112C #648011 #118064
square
#2D1180 #80112C #648011 #118064
split-complementary
#2D1180 #806411 #2C8011
monochromatic
#09041B #1A0A4A #2D1180 #4018B6 #5829E3

Accessibility & contrast

On white

13.97
#2D1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1180
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1180#FFFFFF#000000##FFFFFF
##2D11801.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.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: #2d1180;
/* rgb */ color: rgb(45, 17, 128);
/* oklch */ color: oklch(31.3% 0.166 282.6);
Tailwind
colors: {
  custom: {
    50: '#7355a6',
    500: '#2d1180',
    950: '#000000',
  },
}
SCSS
$custom: #2d1180;
$custom-light: #7355a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1180",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 255.135,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31278,
    "c": 0.16627,
    "h": 282.6
  },
  "luminance": 0.02517
}

Semantic roles & 50–950 ramp

primary
#2D1180
secondary
#96B637
accent
#F335C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D1180

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

Preview Lab → · Contrast checker → · Palette generator →

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