#2D2164#2D2164

#2D2164 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.113 H 285.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2D2164
RGBrgb(45, 33, 100)
HSLhsl(251, 50%, 26%)
HSVhsv(251, 67%, 39%)
CMYKcmyk(55%, 67%, 0%, 60.8%)
CIE-LABlab(18.21, 25.37, -37.81)
CIE-LCHlch(18.21, 45.53, 303.86°)
OKLaboklab(30.57% 0.0308 -0.1084)
OKLCHoklch(30.57% 0.113 285.8)
XYZxyz(3.9256, 2.5655, 12.3425)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2164 #586421
analogous
#213664 #2D2164 #4E2164
triadic
#2D2164 #642D21 #21642D
tetradic
#2D2164 #642136 #586421 #21644E
square
#2D2164 #642136 #586421 #21644E
split-complementary
#2D2164 #644E21 #366421
monochromatic
#0A0817 #181236 #2D2164 #423092 #5740C0

Accessibility & contrast

On white

13.88
#2D2164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D2164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2164
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2164#FFFFFF#000000##FFFFFF
##2D21641.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#18313F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d2164;
/* rgb */ color: rgb(45, 33, 100);
/* oklch */ color: oklch(30.6% 0.113 285.8);
Tailwind
colors: {
  custom: {
    50: '#6c5d91',
    500: '#2d2164',
    950: '#000000',
  },
}
SCSS
$custom: #2d2164;
$custom-light: #6c5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2164",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 100
  },
  "hsl": {
    "h": 250.746,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30566,
    "c": 0.11268,
    "h": 285.8
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#2D2164
secondary
#8A9849
accent
#DA4EC1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2D2164

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

Preview Lab → · Contrast checker → · Palette generator →

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