#2D2180#2D2180

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

Color values

HEX#2D2180
RGBrgb(45, 33, 128)
HSLhsl(248, 59%, 32%)
HSVhsv(248, 74%, 50%)
CMYKcmyk(64.8%, 74.2%, 0%, 49.8%)
CIE-LABlab(20.84, 34.84, -51.56)
CIE-LCHlch(20.84, 62.23, 304.05°)
OKLaboklab(33.27% 0.0263 -0.1487)
OKLCHoklch(33.27% 0.151 280)
XYZxyz(5.5211, 3.2037, 20.7453)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2180 #748021
analogous
#214580 #2D2180 #5D2180
triadic
#2D2180 #802D21 #21802D
tetradic
#2D2180 #802145 #748021 #21805D
square
#2D2180 #802145 #748021 #21805D
split-complementary
#2D2180 #805D21 #458021
monochromatic
#0B081F #1C144F #2D2180 #3E2EB1 #5C4BD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D2180#FFFFFF#000000##FFFFFF
##2D21801.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)
#003683
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2180;
/* rgb */ color: rgb(45, 33, 128);
/* oklch */ color: oklch(33.3% 0.151 280.0);
Tailwind
colors: {
  custom: {
    50: '#715ea6',
    500: '#2d2180',
    950: '#000000',
  },
}
SCSS
$custom: #2d2180;
$custom-light: #715ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2180",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 247.579,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33268,
    "c": 0.15106,
    "h": 280
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#2D2180
secondary
#A5B34A
accent
#E246CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D2180

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

Preview Lab → · Contrast checker → · Palette generator →

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