#2D2D87#2D2D87

#2D2D87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.146 H 276.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2D2D87
RGBrgb(45, 45, 135)
HSLhsl(240, 50%, 35%)
HSVhsv(240, 67%, 53%)
CMYKcmyk(66.7%, 66.7%, 0%, 47.1%)
CIE-LABlab(24.27, 29.76, -50.35)
CIE-LCHlch(24.27, 58.49, 300.59°)
OKLaboklab(35.94% 0.0157 -0.1452)
OKLCHoklch(35.94% 0.146 276.2)
XYZxyz(6.3923, 4.1834, 23.3876)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D87 #87872D
analogous
#2D5A87 #2D2D87 #5A2D87
triadic
#2D2D87 #872D2D #2D872D
tetradic
#2D2D87 #872D5A #87872D #2D875A
square
#2D2D87 #872D5A #87872D #2D875A
split-complementary
#2D2D87 #875A2D #5A872D
monochromatic
#0E0E2B #1E1E59 #2D2D87 #3C3CB5 #6363CB

Accessibility & contrast

On white

11.43
#2D2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D87
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D87#FFFFFF#000000##FFFFFF
##2D2D871.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2d87;
/* rgb */ color: rgb(45, 45, 135);
/* oklch */ color: oklch(35.9% 0.146 276.2);
Tailwind
colors: {
  custom: {
    50: '#7266ab',
    500: '#2d2d87',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d87;
$custom-light: #7266ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d87",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35941,
    "c": 0.14603,
    "h": 276.2
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#2D2D87
secondary
#B2B25E
accent
#DA4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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