#2D1962#2D1962

#2D1962 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.121 H 289.2°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2D1962
RGBrgb(45, 25, 98)
HSLhsl(256, 59%, 24%)
HSVhsv(256, 74%, 38%)
CMYKcmyk(54.1%, 74.5%, 0%, 61.6%)
CIE-LABlab(16.18, 29.74, -39.80)
CIE-LCHlch(16.18, 49.68, 306.76°)
OKLaboklab(29.05% 0.0397 -0.1142)
OKLCHoklch(29.05% 0.121 289.2)
XYZxyz(3.6338, 2.1348, 11.7735)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1962 #4E6219
analogous
#192A62 #2D1962 #521962
triadic
#2D1962 #622D19 #19622D
tetradic
#2D1962 #62192A #4E6219 #196252
square
#2D1962 #62192A #4E6219 #196252
split-complementary
#2D1962 #625219 #2A6219
monochromatic
#0B0618 #170D31 #2D1962 #432593 #5A32C4

Accessibility & contrast

On white

14.72
#2D1962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D1962 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1962
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1962#FFFFFF#000000##FFFFFF
##2D19621.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#1A2C3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1962;
/* rgb */ color: rgb(45, 25, 98);
/* oklch */ color: oklch(29.0% 0.121 289.2);
Tailwind
colors: {
  custom: {
    50: '#6c578f',
    500: '#2d1962',
    950: '#000000',
  },
}
SCSS
$custom: #2d1962;
$custom-light: #6c578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1962",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 98
  },
  "hsl": {
    "h": 256.438,
    "s": 59.35,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29045,
    "c": 0.12096,
    "h": 289.2
  },
  "luminance": 0.02135
}

Semantic roles & 50–950 ramp

primary
#2D1962
secondary
#80983F
accent
#E345B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1962

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

Preview Lab → · Contrast checker → · Palette generator →

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