#2D2776#2D2776

#2D2776 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.130 H 280.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2D2776
RGBrgb(45, 39, 118)
HSLhsl(245, 50%, 31%)
HSVhsv(245, 67%, 46%)
CMYKcmyk(61.9%, 66.9%, 0%, 53.7%)
CIE-LABlab(21.27, 27.66, -44.50)
CIE-LCHlch(21.27, 52.39, 301.86°)
OKLaboklab(33.28% 0.0227 -0.128)
OKLCHoklch(33.28% 0.13 280.1)
XYZxyz(5.0767, 3.3166, 17.5087)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2776 #707627
analogous
#274876 #2D2776 #542776
triadic
#2D2776 #762D27 #27762D
tetradic
#2D2776 #762748 #707627 #277654
square
#2D2776 #762748 #707627 #277654
split-complementary
#2D2776 #765427 #487627
monochromatic
#0A091A #1B1848 #2D2776 #3F36A4 #5A52C6

Accessibility & contrast

On white

12.62
#2D2776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D2776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2776
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2776#FFFFFF#000000##FFFFFF
##2D27761.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2776;
/* rgb */ color: rgb(45, 39, 118);
/* oklch */ color: oklch(33.3% 0.130 280.1);
Tailwind
colors: {
  custom: {
    50: '#6f619e',
    500: '#2d2776',
    950: '#000000',
  },
}
SCSS
$custom: #2d2776;
$custom-light: #6f619e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2776",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 118
  },
  "hsl": {
    "h": 244.557,
    "s": 50.318,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33284,
    "c": 0.13005,
    "h": 280.1
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#2D2776
secondary
#A2A851
accent
#DA4ECF
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2776

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

Preview Lab → · Contrast checker → · Palette generator →

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