#2D1F67#2D1F67

#2D1F67 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.120 H 285.8°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2D1F67
RGBrgb(45, 31, 103)
HSLhsl(252, 54%, 26%)
HSVhsv(252, 70%, 40%)
CMYKcmyk(56.3%, 69.9%, 0%, 59.6%)
CIE-LABlab(17.99, 27.67, -40.13)
CIE-LCHlch(17.99, 48.75, 304.59°)
OKLaboklab(30.49% 0.0326 -0.1152)
OKLCHoklch(30.49% 0.12 285.8)
XYZxyz(4.0196, 2.5169, 13.1033)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F67 #59671F
analogous
#1F3567 #2D1F67 #511F67
triadic
#2D1F67 #672D1F #1F672D
tetradic
#2D1F67 #671F35 #59671F #1F6751
square
#2D1F67 #671F35 #59671F #1F6751
split-complementary
#2D1F67 #67511F #35671F
monochromatic
#0A0718 #181138 #2D1F67 #422D96 #573CC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1F67#FFFFFF#000000##FFFFFF
##2D1F671.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)
#002E69
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#153140
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1f67;
/* rgb */ color: rgb(45, 31, 103);
/* oklch */ color: oklch(30.5% 0.120 285.8);
Tailwind
colors: {
  custom: {
    50: '#6c5b93',
    500: '#2d1f67',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f67;
$custom-light: #6c5b93;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f67",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 251.667,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30491,
    "c": 0.11976,
    "h": 285.8
  },
  "luminance": 0.02517
}

Semantic roles & 50–950 ramp

primary
#2D1F67
secondary
#8B9B46
accent
#DD4BC1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D1F67

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

Preview Lab → · Contrast checker → · Palette generator →

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