#2D235E#2D235E

#2D235E is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.4% C 0.101 H 286.5°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2D235E
RGBrgb(45, 35, 94)
HSLhsl(250, 46%, 25%)
HSVhsv(250, 63%, 37%)
CMYKcmyk(52.1%, 62.8%, 0%, 63.1%)
CIE-LABlab(18.22, 21.99, -33.83)
CIE-LCHlch(18.22, 40.34, 303.03°)
OKLaboklab(30.42% 0.0287 -0.0967)
OKLCHoklch(30.42% 0.101 286.5)
XYZxyz(3.7030, 2.5679, 10.8880)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D235E #545E23
analogous
#23375E #2D235E #4A235E
triadic
#2D235E #5E2D23 #235E2D
tetradic
#2D235E #5E2337 #545E23 #235E4A
square
#2D235E #5E2337 #545E23 #235E4A
split-complementary
#2D235E #5E4A23 #375E23
monochromatic
#0B0816 #181231 #2D235E #42348B #5844B7

Accessibility & contrast

On white

13.87
#2D235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D235E
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D235E#FFFFFF#000000##FFFFFF
##2D235E1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#1C303C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d235e;
/* rgb */ color: rgb(45, 35, 94);
/* oklch */ color: oklch(30.4% 0.101 286.5);
Tailwind
colors: {
  custom: {
    50: '#6a5e8c',
    500: '#2d235e',
    950: '#000000',
  },
}
SCSS
$custom: #2d235e;
$custom-light: #6a5e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d235e",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 250.169,
    "s": 45.736,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30417,
    "c": 0.10087,
    "h": 286.5
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#2D235E
secondary
#86924B
accent
#D552BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D235E

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

Preview Lab → · Contrast checker → · Palette generator →

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