#2D225A#2D225A

#2D225A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.096 H 288.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2D225A
RGBrgb(45, 34, 90)
HSLhsl(252, 45%, 24%)
HSVhsv(252, 62%, 35%)
CMYKcmyk(50%, 62.2%, 0%, 64.7%)
CIE-LABlab(17.65, 21.31, -32.10)
CIE-LCHlch(17.65, 38.53, 303.58°)
OKLaboklab(29.89% 0.0301 -0.0916)
OKLCHoklch(29.89% 0.096 288.2)
XYZxyz(3.4991, 2.4400, 9.9575)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D225A #4F5A22
analogous
#22335A #2D225A #49225A
triadic
#2D225A #5A2D22 #225A2D
tetradic
#2D225A #5A2233 #4F5A22 #225A49
square
#2D225A #5A2233 #4F5A22 #225A49
split-complementary
#2D225A #5A4922 #335A22
monochromatic
#0B0816 #17112E #2D225A #433386 #5944B3

Accessibility & contrast

On white

14.11
#2D225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D225A
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D225A#FFFFFF#000000##FFFFFF
##2D225A1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5C
Deuteranopia (green-blind)
#002A59
Tritanopia (blue-blind)
#1F2F3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d225a;
/* rgb */ color: rgb(45, 34, 90);
/* oklch */ color: oklch(29.9% 0.096 288.2);
Tailwind
colors: {
  custom: {
    50: '#6a5d89',
    500: '#2d225a',
    950: '#000000',
  },
}
SCSS
$custom: #2d225a;
$custom-light: #6a5d89;
$custom-dark: #000000;
JSON
{
  "hex": "#2d225a",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 251.786,
    "s": 45.161,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29891,
    "c": 0.09642,
    "h": 288.2
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#2D225A
secondary
#818E4A
accent
#D553BB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2D225A

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

Preview Lab → · Contrast checker → · Palette generator →

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