#2D1B68#2D1B68

#2D1B68 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.126 H 286.8°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#2D1B68
RGBrgb(45, 27, 104)
HSLhsl(254, 59%, 26%)
HSVhsv(254, 74%, 41%)
CMYKcmyk(56.7%, 74%, 0%, 59.2%)
CIE-LABlab(17.18, 30.48, -42.11)
CIE-LCHlch(17.18, 51.98, 305.90°)
OKLaboklab(29.94% 0.0365 -0.121)
OKLCHoklch(29.94% 0.126 286.8)
XYZxyz(3.9721, 2.3410, 13.3366)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B68 #56681B
analogous
#1B2F68 #2D1B68 #531B68
triadic
#2D1B68 #682D1B #1B682D
tetradic
#2D1B68 #681B2F #56681B #1B6853
square
#2D1B68 #681B2F #56681B #1B6853
split-complementary
#2D1B68 #68531B #2F681B
monochromatic
#0B0618 #180E37 #2D1B68 #422899 #5734C9

Accessibility & contrast

On white

14.30
#2D1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D1B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B68
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B68#FFFFFF#000000##FFFFFF
##2D1B681.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#152F3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1b68;
/* rgb */ color: rgb(45, 27, 104);
/* oklch */ color: oklch(29.9% 0.126 286.8);
Tailwind
colors: {
  custom: {
    50: '#6d5994',
    500: '#2d1b68',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b68;
$custom-light: #6d5994;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b68",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 254.026,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29938,
    "c": 0.12642,
    "h": 286.8
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#2D1B68
secondary
#889D42
accent
#E246BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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