#2D206D#2D206D

#2D206D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.127 H 284.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2D206D
RGBrgb(45, 32, 109)
HSLhsl(250, 55%, 28%)
HSVhsv(250, 71%, 43%)
CMYKcmyk(58.7%, 70.6%, 0%, 57.3%)
CIE-LABlab(18.78, 29.06, -42.77)
CIE-LCHlch(18.78, 51.71, 304.19°)
OKLaboklab(31.23% 0.0307 -0.123)
OKLCHoklch(31.23% 0.127 284)
XYZxyz(4.3582, 2.6948, 14.7555)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D206D #606D20
analogous
#20396D #2D206D #54206D
triadic
#2D206D #6D2D20 #206D2D
tetradic
#2D206D #6D2039 #606D20 #206D54
square
#2D206D #6D2039 #606D20 #206D54
split-complementary
#2D206D #6D5420 #396D20
monochromatic
#0A0718 #19123E #2D206D #412E9C #5740C7

Accessibility & contrast

On white

13.65
#2D206D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D206D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D206D
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D206D#FFFFFF#000000##FFFFFF
##2D206D1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#0E3443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d206d;
/* rgb */ color: rgb(45, 32, 109);
/* oklch */ color: oklch(31.2% 0.127 284.0);
Tailwind
colors: {
  custom: {
    50: '#6e5c98',
    500: '#2d206d',
    950: '#000000',
  },
}
SCSS
$custom: #2d206d;
$custom-light: #6e5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#2d206d",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 109
  },
  "hsl": {
    "h": 250.13,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31226,
    "c": 0.12675,
    "h": 284
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#2D206D
secondary
#92A148
accent
#DE4AC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D206D

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

Preview Lab → · Contrast checker → · Palette generator →

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