#2D225B#2D225B

#2D225B is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.0% C 0.098 H 287.9°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#2D225B
RGBrgb(45, 34, 91)
HSLhsl(252, 46%, 25%)
HSVhsv(252, 63%, 36%)
CMYKcmyk(50.5%, 62.6%, 0%, 64.3%)
CIE-LABlab(17.72, 21.65, -32.64)
CIE-LCHlch(17.72, 39.17, 303.56°)
OKLaboklab(29.97% 0.0301 -0.0932)
OKLCHoklch(29.97% 0.098 287.9)
XYZxyz(3.5420, 2.4571, 10.1831)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D225B #505B22
analogous
#22345B #2D225B #4A225B
triadic
#2D225B #5B2D22 #225B2D
tetradic
#2D225B #5B2234 #505B22 #225B4A
square
#2D225B #5B2234 #505B22 #225B4A
split-complementary
#2D225B #5B4A22 #345B22
monochromatic
#0B0816 #17112E #2D225B #433388 #5943B4

Accessibility & contrast

On white

14.08
#2D225B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D225B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D225B
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D225B#FFFFFF#000000##FFFFFF
##2D225B1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#1E2F3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d225b;
/* rgb */ color: rgb(45, 34, 91);
/* oklch */ color: oklch(30.0% 0.098 287.9);
Tailwind
colors: {
  custom: {
    50: '#6a5d8a',
    500: '#2d225b',
    950: '#000000',
  },
}
SCSS
$custom: #2d225b;
$custom-light: #6a5d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d225b",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 91
  },
  "hsl": {
    "h": 251.579,
    "s": 45.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29974,
    "c": 0.09793,
    "h": 287.9
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#2D225B
secondary
#828F4A
accent
#D553BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D225B

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

Preview Lab → · Contrast checker → · Palette generator →

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