#2D206E#2D206E

#2D206E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.128 H 283.8°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#2D206E
RGBrgb(45, 32, 110)
HSLhsl(250, 55%, 28%)
HSVhsv(250, 71%, 43%)
CMYKcmyk(59.1%, 70.9%, 0%, 56.9%)
CIE-LABlab(18.87, 29.40, -43.27)
CIE-LCHlch(18.87, 52.31, 304.19°)
OKLaboklab(31.32% 0.0305 -0.1244)
OKLCHoklch(31.32% 0.128 283.8)
XYZxyz(4.4123, 2.7164, 15.0406)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D206E #616E20
analogous
#203A6E #2D206E #54206E
triadic
#2D206E #6E2D20 #206E2D
tetradic
#2D206E #6E203A #616E20 #206E54
square
#2D206E #6E203A #616E20 #206E54
split-complementary
#2D206E #6E5420 #3A6E20
monochromatic
#0A0718 #1A123F #2D206E #402E9D #5741C8

Accessibility & contrast

On white

13.61
#2D206E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D206E
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D206E#FFFFFF#000000##FFFFFF
##2D206E1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#0D3444
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d206e;
/* rgb */ color: rgb(45, 32, 110);
/* oklch */ color: oklch(31.3% 0.128 283.8);
Tailwind
colors: {
  custom: {
    50: '#6e5c98',
    500: '#2d206e',
    950: '#000000',
  },
}
SCSS
$custom: #2d206e;
$custom-light: #6e5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#2d206e",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 110
  },
  "hsl": {
    "h": 250,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31321,
    "c": 0.12813,
    "h": 283.8
  },
  "luminance": 0.02717
}

Semantic roles & 50–950 ramp

primary
#2D206E
secondary
#93A248
accent
#DE4AC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D206E

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

Preview Lab → · Contrast checker → · Palette generator →

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