#2D1774#2D1774

#2D1774 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.147 H 284.5°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#2D1774
RGBrgb(45, 23, 116)
HSLhsl(254, 67%, 27%)
HSVhsv(254, 80%, 45%)
CMYKcmyk(61.2%, 80.2%, 0%, 54.5%)
CIE-LABlab(17.61, 36.57, -49.22)
CIE-LCHlch(17.61, 61.32, 306.61°)
OKLaboklab(30.61% 0.0368 -0.1418)
OKLCHoklch(30.61% 0.147 284.5)
XYZxyz(4.5400, 2.4313, 16.7497)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1774 #5E7417
analogous
#172F74 #2D1774 #5C1774
triadic
#2D1774 #742D17 #17742D
tetradic
#2D1774 #74172F #5E7417 #17745C
square
#2D1774 #74172F #5E7417 #17745C
split-complementary
#2D1774 #745C17 #2F7417
monochromatic
#0A051A #190D41 #2D1774 #4121A7 #5730D6

Accessibility & contrast

On white

14.13
#2D1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1774
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1774#FFFFFF#000000##FFFFFF
##2D17741.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1774;
/* rgb */ color: rgb(45, 23, 116);
/* oklch */ color: oklch(30.6% 0.147 284.5);
Tailwind
colors: {
  custom: {
    50: '#70579d',
    500: '#2d1774',
    950: '#000000',
  },
}
SCSS
$custom: #2d1774;
$custom-light: #70579d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1774",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 254.194,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30606,
    "c": 0.14652,
    "h": 284.5
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#2D1774
secondary
#90A93D
accent
#EA3EC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1774

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

Preview Lab → · Contrast checker → · Palette generator →

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