#2D2A87#2D2A87

#2D2A87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.150 H 276.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2D2A87
RGBrgb(45, 42, 135)
HSLhsl(242, 53%, 35%)
HSVhsv(242, 69%, 53%)
CMYKcmyk(66.7%, 68.9%, 0%, 47.1%)
CIE-LABlab(23.55, 31.69, -51.53)
CIE-LCHlch(23.55, 60.50, 301.59°)
OKLaboklab(35.42% 0.0181 -0.1487)
OKLCHoklch(35.42% 0.15 276.9)
XYZxyz(6.2819, 3.9626, 23.3508)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A87 #84872A
analogous
#2A5687 #2D2A87 #5B2A87
triadic
#2D2A87 #872D2A #2A872D
tetradic
#2D2A87 #872A56 #84872A #2A875B
square
#2D2A87 #872A56 #84872A #2A875B
split-complementary
#2D2A87 #875B2A #56872A
monochromatic
#0E0D2A #1D1B58 #2D2A87 #3D39B6 #625ECD

Accessibility & contrast

On white

11.71
#2D2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A87
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A87#FFFFFF#000000##FFFFFF
##2D2A871.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2a87;
/* rgb */ color: rgb(45, 42, 135);
/* oklch */ color: oklch(35.4% 0.150 276.9);
Tailwind
colors: {
  custom: {
    50: '#7264ab',
    500: '#2d2a87',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a87;
$custom-light: #7264ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a87",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 241.935,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35417,
    "c": 0.14976,
    "h": 276.9
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#2D2A87
secondary
#B0B35A
accent
#DC4CD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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