#2D1866#2D1866

#2D1866 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.128 H 288.2°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2D1866
RGBrgb(45, 24, 102)
HSLhsl(256, 62%, 25%)
HSVhsv(256, 76%, 40%)
CMYKcmyk(55.9%, 76.5%, 0%, 60%)
CIE-LABlab(16.36, 31.60, -42.15)
CIE-LCHlch(16.36, 52.68, 306.86°)
OKLaboklab(29.29% 0.0398 -0.1211)
OKLCHoklch(29.29% 0.128 288.2)
XYZxyz(3.8064, 2.1703, 12.7861)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1866 #516618
analogous
#182A66 #2D1866 #541866
triadic
#2D1866 #662D18 #18662D
tetradic
#2D1866 #66182A #516618 #186654
square
#2D1866 #66182A #516618 #186654
split-complementary
#2D1866 #665418 #2A6618
monochromatic
#0B0619 #170C34 #2D1866 #432498 #592FC9

Accessibility & contrast

On white

14.64
#2D1866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1866
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1866#FFFFFF#000000##FFFFFF
##2D18661.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#172D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1866;
/* rgb */ color: rgb(45, 24, 102);
/* oklch */ color: oklch(29.3% 0.128 288.2);
Tailwind
colors: {
  custom: {
    50: '#6d5792',
    500: '#2d1866',
    950: '#000000',
  },
}
SCSS
$custom: #2d1866;
$custom-light: #6d5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1866",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 256.154,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.2929,
    "c": 0.12752,
    "h": 288.2
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#2D1866
secondary
#839C3E
accent
#E543B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2D1866

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

Preview Lab → · Contrast checker → · Palette generator →

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