#2D2579#2D2579

#2D2579 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.137 H 280.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2D2579
RGBrgb(45, 37, 121)
HSLhsl(246, 53%, 31%)
HSVhsv(246, 69%, 47%)
CMYKcmyk(62.8%, 69.4%, 0%, 52.5%)
CIE-LABlab(21.06, 29.99, -46.76)
CIE-LCHlch(21.06, 55.55, 302.68°)
OKLaboklab(33.22% 0.0242 -0.1347)
OKLCHoklch(33.22% 0.137 280.2)
XYZxyz(5.1939, 3.2611, 18.4412)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2579 #717925
analogous
#254779 #2D2579 #572579
triadic
#2D2579 #792D25 #25792D
tetradic
#2D2579 #792547 #717925 #257957
square
#2D2579 #792547 #717925 #257957
split-complementary
#2D2579 #795725 #477925
monochromatic
#0A081B #1C174A #2D2579 #3E33A8 #5B4FC9

Accessibility & contrast

On white

12.71
#2D2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2579
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2579#FFFFFF#000000##FFFFFF
##2D25791.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2579;
/* rgb */ color: rgb(45, 37, 121);
/* oklch */ color: oklch(33.2% 0.137 280.2);
Tailwind
colors: {
  custom: {
    50: '#6f60a1',
    500: '#2d2579',
    950: '#000000',
  },
}
SCSS
$custom: #2d2579;
$custom-light: #6f60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2579",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 245.714,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33217,
    "c": 0.13684,
    "h": 280.2
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#2D2579
secondary
#A3AB4E
accent
#DD4BCF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D2579

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

Preview Lab → · Contrast checker → · Palette generator →

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