#2D2586#2D2586

#2D2586 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.154 H 278.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2D2586
RGBrgb(45, 37, 134)
HSLhsl(245, 57%, 34%)
HSVhsv(245, 72%, 53%)
CMYKcmyk(66.4%, 72.4%, 0%, 47.5%)
CIE-LABlab(22.31, 34.46, -52.93)
CIE-LCHlch(22.31, 63.16, 303.07°)
OKLaboklab(34.5% 0.0221 -0.1528)
OKLCHoklch(34.5% 0.154 278.2)
XYZxyz(6.0454, 3.6018, 22.9263)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2586 #7E8625
analogous
#254D86 #2D2586 #5D2586
triadic
#2D2586 #862D25 #25862D
tetradic
#2D2586 #86254D #7E8625 #25865D
square
#2D2586 #86254D #7E8625 #25865D
split-complementary
#2D2586 #865D25 #4D8625
monochromatic
#0D0B26 #1D1856 #2D2586 #3D32B6 #5F55D0

Accessibility & contrast

On white

12.21
#2D2586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D2586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2586
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2586#FFFFFF#000000##FFFFFF
##2D25861.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.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: #2d2586;
/* rgb */ color: rgb(45, 37, 134);
/* oklch */ color: oklch(34.5% 0.154 278.2);
Tailwind
colors: {
  custom: {
    50: '#7261aa',
    500: '#2d2586',
    950: '#000000',
  },
}
SCSS
$custom: #2d2586;
$custom-light: #7261aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2586",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 244.948,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34496,
    "c": 0.15436,
    "h": 278.2
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#2D2586
secondary
#ACB452
accent
#E048D3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2586

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

Preview Lab → · Contrast checker → · Palette generator →

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