#2D206B#2D206B

#2D206B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.0% C 0.124 H 284.5°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2D206B
RGBrgb(45, 32, 107)
HSLhsl(250, 54%, 27%)
HSVhsv(250, 70%, 42%)
CMYKcmyk(57.9%, 70.1%, 0%, 58%)
CIE-LABlab(18.59, 28.38, -41.77)
CIE-LCHlch(18.59, 50.50, 304.20°)
OKLaboklab(31.04% 0.031 -0.12)
OKLCHoklch(31.04% 0.124 284.5)
XYZxyz(4.2517, 2.6522, 14.1950)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D206B #5E6B20
analogous
#20396B #2D206B #53206B
triadic
#2D206B #6B2D20 #206B2D
tetradic
#2D206B #6B2039 #5E6B20 #206B53
square
#2D206B #6B2039 #5E6B20 #206B53
split-complementary
#2D206B #6B5320 #396B20
monochromatic
#0A0718 #19123C #2D206B #412E9A #5740C6

Accessibility & contrast

On white

13.72
#2D206B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D206B
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D206B#FFFFFF#000000##FFFFFF
##2D206B1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#113342
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d206b;
/* rgb */ color: rgb(45, 32, 107);
/* oklch */ color: oklch(31.0% 0.124 284.5);
Tailwind
colors: {
  custom: {
    50: '#6d5c96',
    500: '#2d206b',
    950: '#000000',
  },
}
SCSS
$custom: #2d206b;
$custom-light: #6d5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#2d206b",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 107
  },
  "hsl": {
    "h": 250.4,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31036,
    "c": 0.12398,
    "h": 284.5
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#2D206B
secondary
#909F48
accent
#DD4AC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D206B

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

Preview Lab → · Contrast checker → · Palette generator →

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