#2D206C#2D206C

#2D206C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.1% C 0.125 H 284.2°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2D206C
RGBrgb(45, 32, 108)
HSLhsl(250, 54%, 27%)
HSVhsv(250, 70%, 42%)
CMYKcmyk(58.3%, 70.4%, 0%, 57.6%)
CIE-LABlab(18.69, 28.72, -42.27)
CIE-LCHlch(18.69, 51.10, 304.20°)
OKLaboklab(31.13% 0.0308 -0.1215)
OKLCHoklch(31.13% 0.125 284.2)
XYZxyz(4.3047, 2.6734, 14.4736)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D206C #5F6C20
analogous
#20396C #2D206C #53206C
triadic
#2D206C #6C2D20 #206C2D
tetradic
#2D206C #6C2039 #5F6C20 #206C53
square
#2D206C #6C2039 #5F6C20 #206C53
split-complementary
#2D206C #6C5320 #396C20
monochromatic
#0A0718 #19123D #2D206C #412E9B #5740C6

Accessibility & contrast

On white

13.68
#2D206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D206C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D206C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D206C#FFFFFF#000000##FFFFFF
##2D206C1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#103343
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d206c;
/* rgb */ color: rgb(45, 32, 108);
/* oklch */ color: oklch(31.1% 0.125 284.2);
Tailwind
colors: {
  custom: {
    50: '#6d5c97',
    500: '#2d206c',
    950: '#000000',
  },
}
SCSS
$custom: #2d206c;
$custom-light: #6d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#2d206c",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 250.263,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31131,
    "c": 0.12537,
    "h": 284.2
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#2D206C
secondary
#91A048
accent
#DE4AC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2D206C

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

Preview Lab → · Contrast checker → · Palette generator →

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