#2D1874#2D1874

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

Color values

HEX#2D1874
RGBrgb(45, 24, 116)
HSLhsl(254, 66%, 27%)
HSVhsv(254, 79%, 45%)
CMYKcmyk(61.2%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.79, 36.04, -48.92)
CIE-LCHlch(17.79, 60.76, 306.38°)
OKLaboklab(30.74% 0.036 -0.1409)
OKLCHoklch(30.74% 0.145 284.3)
XYZxyz(4.5602, 2.4718, 16.7564)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1874 #5F7418
analogous
#183174 #2D1874 #5B1874
triadic
#2D1874 #742D18 #18742D
tetradic
#2D1874 #741831 #5F7418 #18745B
square
#2D1874 #741831 #5F7418 #18745B
split-complementary
#2D1874 #745B18 #317418
monochromatic
#0A0519 #190E41 #2D1874 #4122A7 #5732D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1874#FFFFFF#000000##FFFFFF
##2D18741.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)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#033245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1874;
/* rgb */ color: rgb(45, 24, 116);
/* oklch */ color: oklch(30.7% 0.145 284.3);
Tailwind
colors: {
  custom: {
    50: '#70589d',
    500: '#2d1874',
    950: '#000000',
  },
}
SCSS
$custom: #2d1874;
$custom-light: #70589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1874",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 253.696,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30736,
    "c": 0.14548,
    "h": 284.3
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#2D1874
secondary
#91A93F
accent
#E93FC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1874

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

Preview Lab → · Contrast checker → · Palette generator →

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