#2D1858#2D1858

#2D1858 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.109 H 293.1°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2D1858
RGBrgb(45, 24, 88)
HSLhsl(260, 57%, 22%)
HSVhsv(260, 73%, 35%)
CMYKcmyk(48.9%, 72.7%, 0%, 65.5%)
CIE-LABlab(15.04, 27.16, -34.98)
CIE-LCHlch(15.04, 44.29, 307.82°)
OKLaboklab(27.94% 0.0427 -0.1001)
OKLCHoklch(27.94% 0.109 293.1)
XYZxyz(3.1698, 1.9156, 9.4334)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1858 #435818
analogous
#182358 #2D1858 #4D1858
triadic
#2D1858 #582D18 #18582D
tetradic
#2D1858 #581823 #435818 #18584D
square
#2D1858 #581823 #435818 #18584D
split-complementary
#2D1858 #584D18 #235818
monochromatic
#0C0718 #140B28 #2D1858 #462588 #5E32B8

Accessibility & contrast

On white

15.18
#2D1858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1858
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1858#FFFFFF#000000##FFFFFF
##2D18581.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#202835
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1858;
/* rgb */ color: rgb(45, 24, 88);
/* oklch */ color: oklch(27.9% 0.109 293.1);
Tailwind
colors: {
  custom: {
    50: '#6a5688',
    500: '#2d1858',
    950: '#000000',
  },
}
SCSS
$custom: #2d1858;
$custom-light: #6a5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1858",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 259.688,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27941,
    "c": 0.10883,
    "h": 293.1
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#2D1858
secondary
#748F3D
accent
#E047AE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1858

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

Preview Lab → · Contrast checker → · Palette generator →

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