#2D2080#2D2080

#2D2080 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.152 H 280.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2D2080
RGBrgb(45, 32, 128)
HSLhsl(248, 60%, 31%)
HSVhsv(248, 75%, 50%)
CMYKcmyk(64.8%, 75%, 0%, 49.8%)
CIE-LABlab(20.63, 35.43, -51.91)
CIE-LCHlch(20.63, 62.85, 304.31°)
OKLaboklab(33.12% 0.027 -0.1498)
OKLCHoklch(33.12% 0.152 280.2)
XYZxyz(5.4937, 3.1490, 20.7362)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2080 #738020
analogous
#204380 #2D2080 #5D2080
triadic
#2D2080 #802D20 #20802D
tetradic
#2D2080 #802043 #738020 #20805D
square
#2D2080 #802043 #738020 #20805D
split-complementary
#2D2080 #805D20 #438020
monochromatic
#0B081E #1C144F #2D2080 #3E2CB1 #5B49D1

Accessibility & contrast

On white

12.89
#2D2080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D2080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2080
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2080#FFFFFF#000000##FFFFFF
##2D20801.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2080;
/* rgb */ color: rgb(45, 32, 128);
/* oklch */ color: oklch(33.1% 0.152 280.2);
Tailwind
colors: {
  custom: {
    50: '#715da6',
    500: '#2d2080',
    950: '#000000',
  },
}
SCSS
$custom: #2d2080;
$custom-light: #715da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2080",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 248.125,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33118,
    "c": 0.15218,
    "h": 280.2
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#2D2080
secondary
#A4B349
accent
#E345CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D2080

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

Preview Lab → · Contrast checker → · Palette generator →

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