#2D1862#2D1862

#2D1862 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.122 H 289.5°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#2D1862
RGBrgb(45, 24, 98)
HSLhsl(257, 61%, 24%)
HSVhsv(257, 76%, 38%)
CMYKcmyk(54.1%, 75.5%, 0%, 61.6%)
CIE-LABlab(15.97, 30.33, -40.15)
CIE-LCHlch(15.97, 50.31, 307.07°)
OKLaboklab(28.89% 0.0407 -0.1153)
OKLCHoklch(28.89% 0.122 289.5)
XYZxyz(3.6128, 2.0928, 11.7665)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1862 #4D6218
analogous
#182862 #2D1862 #521862
triadic
#2D1862 #622D18 #18622D
tetradic
#2D1862 #621828 #4D6218 #186252
square
#2D1862 #621828 #4D6218 #186252
split-complementary
#2D1862 #625218 #286218
monochromatic
#0B0619 #160C31 #2D1862 #442493 #5A30C4

Accessibility & contrast

On white

14.80
#2D1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D1862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1862
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1862#FFFFFF#000000##FFFFFF
##2D18621.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#1A2B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1862;
/* rgb */ color: rgb(45, 24, 98);
/* oklch */ color: oklch(28.9% 0.122 289.5);
Tailwind
colors: {
  custom: {
    50: '#6c578f',
    500: '#2d1862',
    950: '#000000',
  },
}
SCSS
$custom: #2d1862;
$custom-light: #6c578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1862",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 257.027,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28893,
    "c": 0.12225,
    "h": 289.5
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#2D1862
secondary
#7F983E
accent
#E444B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1862

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

Preview Lab → · Contrast checker → · Palette generator →

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