#2D2779#2D2779

#2D2779 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.134 H 279.6°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2D2779
RGBrgb(45, 39, 121)
HSLhsl(244, 51%, 31%)
HSVhsv(244, 68%, 47%)
CMYKcmyk(62.8%, 67.8%, 0%, 52.5%)
CIE-LABlab(21.54, 28.71, -45.98)
CIE-LCHlch(21.54, 54.20, 301.98°)
OKLaboklab(33.56% 0.0224 -0.1324)
OKLCHoklch(33.56% 0.134 279.6)
XYZxyz(5.2578, 3.3890, 18.4625)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2779 #737927
analogous
#274A79 #2D2779 #562779
triadic
#2D2779 #792D27 #27792D
tetradic
#2D2779 #79274A #737927 #277956
square
#2D2779 #79274A #737927 #277956
split-complementary
#2D2779 #795627 #4A7927
monochromatic
#0B091C #1C184B #2D2779 #3E36A7 #5B53C8

Accessibility & contrast

On white

12.52
#2D2779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D2779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2779
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2779#FFFFFF#000000##FFFFFF
##2D27791.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2779;
/* rgb */ color: rgb(45, 39, 121);
/* oklch */ color: oklch(33.6% 0.134 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f62a0',
    500: '#2d2779',
    950: '#000000',
  },
}
SCSS
$custom: #2d2779;
$custom-light: #6f62a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2779",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 244.39,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33563,
    "c": 0.13426,
    "h": 279.6
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#2D2779
secondary
#A4AB51
accent
#DB4DD0
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D2779

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

Preview Lab → · Contrast checker → · Palette generator →

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