#2D2886#2D2886

#2D2886 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.151 H 277.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#2D2886
RGBrgb(45, 40, 134)
HSLhsl(243, 54%, 34%)
HSVhsv(243, 70%, 53%)
CMYKcmyk(66.4%, 70.1%, 0%, 47.5%)
CIE-LABlab(22.99, 32.61, -51.82)
CIE-LCHlch(22.99, 61.23, 302.18°)
OKLaboklab(34.98% 0.0198 -0.1495)
OKLCHoklch(34.98% 0.151 277.6)
XYZxyz(6.1427, 3.7962, 22.9587)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2886 #818628
analogous
#285286 #2D2886 #5C2886
triadic
#2D2886 #862D28 #28862D
tetradic
#2D2886 #862852 #818628 #28865C
square
#2D2886 #862852 #818628 #28865C
split-complementary
#2D2886 #865C28 #528628
monochromatic
#0D0C28 #1D1A57 #2D2886 #3D36B5 #615BCE

Accessibility & contrast

On white

11.94
#2D2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2886
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2886#FFFFFF#000000##FFFFFF
##2D28861.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2886;
/* rgb */ color: rgb(45, 40, 134);
/* oklch */ color: oklch(35.0% 0.151 277.6);
Tailwind
colors: {
  custom: {
    50: '#7263aa',
    500: '#2d2886',
    950: '#000000',
  },
}
SCSS
$custom: #2d2886;
$custom-light: #7263aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2886",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 243.191,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34983,
    "c": 0.15083,
    "h": 277.6
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#2D2886
secondary
#AEB357
accent
#DD4AD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2886

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

Preview Lab → · Contrast checker → · Palette generator →

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