#2D2979#2D2979

#2D2979 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.132 H 279.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2D2979
RGBrgb(45, 41, 121)
HSLhsl(243, 49%, 32%)
HSVhsv(243, 66%, 47%)
CMYKcmyk(62.8%, 66.1%, 0%, 52.5%)
CIE-LABlab(22.03, 27.40, -45.17)
CIE-LCHlch(22.03, 52.83, 301.24°)
OKLaboklab(33.92% 0.0205 -0.13)
OKLCHoklch(33.92% 0.132 279)
XYZxyz(5.3252, 3.5238, 18.4850)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2979 #757929
analogous
#294D79 #2D2979 #552979
triadic
#2D2979 #792D29 #29792D
tetradic
#2D2979 #79294D #757929 #297955
square
#2D2979 #79294D #757929 #297955
split-complementary
#2D2979 #795529 #4D7929
monochromatic
#0B0A1E #1C1A4B #2D2979 #3E38A7 #5C56C6

Accessibility & contrast

On white

12.32
#2D2979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D2979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2979
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2979#FFFFFF#000000##FFFFFF
##2D29791.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2979;
/* rgb */ color: rgb(45, 41, 121);
/* oklch */ color: oklch(33.9% 0.132 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f63a0',
    500: '#2d2979',
    950: '#000000',
  },
}
SCSS
$custom: #2d2979;
$custom-light: #6f63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2979",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 243,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33921,
    "c": 0.13163,
    "h": 279
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#2D2979
secondary
#A6AB53
accent
#D94FD2
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D2979

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

Preview Lab → · Contrast checker → · Palette generator →

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