#2D2575#2D2575

#2D2575 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.131 H 280.9°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2D2575
RGBrgb(45, 37, 117)
HSLhsl(246, 52%, 30%)
HSVhsv(246, 68%, 46%)
CMYKcmyk(61.5%, 68.4%, 0%, 54.1%)
CIE-LABlab(20.69, 28.61, -44.80)
CIE-LCHlch(20.69, 53.16, 302.56°)
OKLaboklab(32.84% 0.0247 -0.1289)
OKLCHoklch(32.84% 0.131 280.9)
XYZxyz(4.9536, 3.1650, 17.1761)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2575 #6D7525
analogous
#254575 #2D2575 #552575
triadic
#2D2575 #752D25 #25752D
tetradic
#2D2575 #752545 #6D7525 #257555
square
#2D2575 #752545 #6D7525 #257555
split-complementary
#2D2575 #755525 #457525
monochromatic
#090818 #1B1647 #2D2575 #3F34A3 #5A4EC7

Accessibility & contrast

On white

12.86
#2D2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D2575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2575
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2575#FFFFFF#000000##FFFFFF
##2D25751.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2575;
/* rgb */ color: rgb(45, 37, 117);
/* oklch */ color: oklch(32.8% 0.131 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f609e',
    500: '#2d2575',
    950: '#000000',
  },
}
SCSS
$custom: #2d2575;
$custom-light: #6f609e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2575",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 246,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32837,
    "c": 0.13129,
    "h": 280.9
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#2D2575
secondary
#9FA84E
accent
#DB4CCD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2575

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

Preview Lab → · Contrast checker → · Palette generator →

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