#2D2479#2D2479

#2D2479 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.138 H 280.5°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2D2479
RGBrgb(45, 36, 121)
HSLhsl(246, 54%, 31%)
HSVhsv(246, 70%, 47%)
CMYKcmyk(62.8%, 70.2%, 0%, 52.5%)
CIE-LABlab(20.83, 30.63, -47.14)
CIE-LCHlch(20.83, 56.22, 303.01°)
OKLaboklab(33.05% 0.0251 -0.1358)
OKLCHoklch(33.05% 0.138 280.5)
XYZxyz(5.1632, 3.1997, 18.4310)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2479 #707924
analogous
#244579 #2D2479 #572479
triadic
#2D2479 #792D24 #24792D
tetradic
#2D2479 #792445 #707924 #247957
square
#2D2479 #792445 #707924 #247957
split-complementary
#2D2479 #795724 #457924
monochromatic
#0A081B #1B164A #2D2479 #3F32A8 #5A4DCA

Accessibility & contrast

On white

12.80
#2D2479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2479
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2479#FFFFFF#000000##FFFFFF
##2D24791.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2479;
/* rgb */ color: rgb(45, 36, 121);
/* oklch */ color: oklch(33.0% 0.138 280.5);
Tailwind
colors: {
  custom: {
    50: '#705fa1',
    500: '#2d2479',
    950: '#000000',
  },
}
SCSS
$custom: #2d2479;
$custom-light: #705fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2479",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 246.353,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33048,
    "c": 0.13811,
    "h": 280.5
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#2D2479
secondary
#A2AC4D
accent
#DE4ACE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D2479

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

Preview Lab → · Contrast checker → · Palette generator →

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