#2D2486#2D2486

#2D2486 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.156 H 278.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2D2486
RGBrgb(45, 36, 134)
HSLhsl(246, 58%, 33%)
HSVhsv(246, 73%, 53%)
CMYKcmyk(66.4%, 73.1%, 0%, 47.5%)
CIE-LABlab(22.09, 35.07, -53.29)
CIE-LCHlch(22.09, 63.80, 303.35°)
OKLaboklab(34.34% 0.0229 -0.1538)
OKLCHoklch(34.34% 0.156 278.5)
XYZxyz(6.0148, 3.5404, 22.9160)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2486 #7D8624
analogous
#244C86 #2D2486 #5E2486
triadic
#2D2486 #862D24 #24862D
tetradic
#2D2486 #86244C #7D8624 #24865E
square
#2D2486 #86244C #7D8624 #24865E
split-complementary
#2D2486 #865E24 #4C8624
monochromatic
#0D0A26 #1D1756 #2D2486 #3D31B6 #5F53D1

Accessibility & contrast

On white

12.29
#2D2486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D2486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2486
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2486#FFFFFF#000000##FFFFFF
##2D24861.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2486;
/* rgb */ color: rgb(45, 36, 134);
/* oklch */ color: oklch(34.3% 0.156 278.5);
Tailwind
colors: {
  custom: {
    50: '#7260aa',
    500: '#2d2486',
    950: '#000000',
  },
}
SCSS
$custom: #2d2486;
$custom-light: #7260aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2486",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 245.51,
    "s": 57.647,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3434,
    "c": 0.15551,
    "h": 278.5
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#2D2486
secondary
#ACB551
accent
#E147D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2486

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

Preview Lab → · Contrast checker → · Palette generator →

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