#2D2576#2D2576

#2D2576 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.133 H 280.7°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2D2576
RGBrgb(45, 37, 118)
HSLhsl(246, 52%, 30%)
HSVhsv(246, 69%, 46%)
CMYKcmyk(61.9%, 68.6%, 0%, 53.7%)
CIE-LABlab(20.78, 28.95, -45.29)
CIE-LCHlch(20.78, 53.76, 302.59°)
OKLaboklab(32.93% 0.0246 -0.1304)
OKLCHoklch(32.93% 0.133 280.7)
XYZxyz(5.0127, 3.1887, 17.4874)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2576 #6E7625
analogous
#254576 #2D2576 #552576
triadic
#2D2576 #762D25 #25762D
tetradic
#2D2576 #762545 #6E7625 #257655
square
#2D2576 #762545 #6E7625 #257655
split-complementary
#2D2576 #765525 #457625
monochromatic
#090819 #1B1647 #2D2576 #3F34A5 #5A4EC7

Accessibility & contrast

On white

12.82
#2D2576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D2576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2576
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2576#FFFFFF#000000##FFFFFF
##2D25761.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2576;
/* rgb */ color: rgb(45, 37, 118);
/* oklch */ color: oklch(32.9% 0.133 280.7);
Tailwind
colors: {
  custom: {
    50: '#6f609e',
    500: '#2d2576',
    950: '#000000',
  },
}
SCSS
$custom: #2d2576;
$custom-light: #6f609e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2576",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 118
  },
  "hsl": {
    "h": 245.926,
    "s": 52.258,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32932,
    "c": 0.13269,
    "h": 280.7
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#2D2576
secondary
#A0A94E
accent
#DC4CCE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2576

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

Preview Lab → · Contrast checker → · Palette generator →

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