#2D2386#2D2386

#2D2386 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.157 H 278.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2D2386
RGBrgb(45, 35, 134)
HSLhsl(246, 59%, 33%)
HSVhsv(246, 74%, 53%)
CMYKcmyk(66.4%, 73.9%, 0%, 47.5%)
CIE-LABlab(21.87, 35.67, -53.65)
CIE-LCHlch(21.87, 64.42, 303.62°)
OKLaboklab(34.19% 0.0236 -0.1548)
OKLCHoklch(34.19% 0.157 278.7)
XYZxyz(5.9849, 3.4807, 22.9061)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2386 #7C8623
analogous
#234A86 #2D2386 #5E2386
triadic
#2D2386 #862D23 #23862D
tetradic
#2D2386 #86234A #7C8623 #23865E
square
#2D2386 #86234A #7C8623 #23865E
split-complementary
#2D2386 #865E23 #4A8623
monochromatic
#0C0A25 #1D1655 #2D2386 #3D30B7 #5F52D2

Accessibility & contrast

On white

12.38
#2D2386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D2386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2386
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2386#FFFFFF#000000##FFFFFF
##2D23861.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2386;
/* rgb */ color: rgb(45, 35, 134);
/* oklch */ color: oklch(34.2% 0.157 278.7);
Tailwind
colors: {
  custom: {
    50: '#725faa',
    500: '#2d2386',
    950: '#000000',
  },
}
SCSS
$custom: #2d2386;
$custom-light: #725faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2386",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 246.061,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34187,
    "c": 0.15664,
    "h": 278.7
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#2D2386
secondary
#ABB54F
accent
#E246D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2386

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

Preview Lab → · Contrast checker → · Palette generator →

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