#2D225F#2D225F

#2D225F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.104 H 286.7°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#2D225F
RGBrgb(45, 34, 95)
HSLhsl(251, 47%, 25%)
HSVhsv(251, 64%, 37%)
CMYKcmyk(52.6%, 64.2%, 0%, 62.7%)
CIE-LABlab(18.04, 23.00, -34.78)
CIE-LCHlch(18.04, 41.70, 303.48°)
OKLaboklab(30.31% 0.0299 -0.0995)
OKLCHoklch(30.31% 0.104 286.7)
XYZxyz(3.7192, 2.5280, 11.1162)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D225F #545F22
analogous
#22355F #2D225F #4C225F
triadic
#2D225F #5F2D22 #225F2D
tetradic
#2D225F #5F2235 #545F22 #225F4C
square
#2D225F #5F2235 #545F22 #225F4C
split-complementary
#2D225F #5F4C22 #355F22
monochromatic
#0B0817 #181232 #2D225F #42328C #5842B9

Accessibility & contrast

On white

13.95
#2D225F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D225F
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D225F#FFFFFF#000000##FFFFFF
##2D225F1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#1B303D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d225f;
/* rgb */ color: rgb(45, 34, 95);
/* oklch */ color: oklch(30.3% 0.104 286.7);
Tailwind
colors: {
  custom: {
    50: '#6b5d8d',
    500: '#2d225f',
    950: '#000000',
  },
}
SCSS
$custom: #2d225f;
$custom-light: #6b5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d225f",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 250.82,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30311,
    "c": 0.10389,
    "h": 286.7
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#2D225F
secondary
#86934A
accent
#D751BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D225F

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

Preview Lab → · Contrast checker → · Palette generator →

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