#2D1865#2D1865

#2D1865 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.126 H 288.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1865
RGBrgb(45, 24, 101)
HSLhsl(256, 62%, 25%)
HSVhsv(256, 76%, 40%)
CMYKcmyk(55.4%, 76.2%, 0%, 60.4%)
CIE-LABlab(16.26, 31.28, -41.65)
CIE-LCHlch(16.26, 52.09, 306.90°)
OKLaboklab(29.19% 0.04 -0.1197)
OKLCHoklch(29.19% 0.126 288.5)
XYZxyz(3.7571, 2.1506, 12.5265)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1865 #506518
analogous
#182965 #2D1865 #541865
triadic
#2D1865 #652D18 #18652D
tetradic
#2D1865 #651829 #506518 #186554
square
#2D1865 #651829 #506518 #186554
split-complementary
#2D1865 #655418 #296518
monochromatic
#0B0619 #170C34 #2D1865 #432496 #5930C8

Accessibility & contrast

On white

14.68
#2D1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1865
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1865#FFFFFF#000000##FFFFFF
##2D18651.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#182C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1865;
/* rgb */ color: rgb(45, 24, 101);
/* oklch */ color: oklch(29.2% 0.126 288.5);
Tailwind
colors: {
  custom: {
    50: '#6d5792',
    500: '#2d1865',
    950: '#000000',
  },
}
SCSS
$custom: #2d1865;
$custom-light: #6d5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1865",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 256.364,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2919,
    "c": 0.12621,
    "h": 288.5
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#2D1865
secondary
#829B3E
accent
#E543B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2D1865

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

Preview Lab → · Contrast checker → · Palette generator →

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