#2D2B87#2D2B87

#2D2B87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.149 H 276.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2D2B87
RGBrgb(45, 43, 135)
HSLhsl(241, 52%, 35%)
HSVhsv(241, 68%, 53%)
CMYKcmyk(66.7%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.78, 31.05, -51.14)
CIE-LCHlch(23.78, 59.83, 301.27°)
OKLaboklab(35.59% 0.0173 -0.1475)
OKLCHoklch(35.59% 0.149 276.7)
XYZxyz(6.3178, 4.0344, 23.3627)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2B87 #85872B
analogous
#2B5787 #2D2B87 #5B2B87
triadic
#2D2B87 #872D2B #2B872D
tetradic
#2D2B87 #872B57 #85872B #2B875B
square
#2D2B87 #872B57 #85872B #2B875B
split-complementary
#2D2B87 #875B2B #57872B
monochromatic
#0E0D2A #1E1C59 #2D2B87 #3C3AB5 #6260CC

Accessibility & contrast

On white

11.62
#2D2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2B87
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2B87#FFFFFF#000000##FFFFFF
##2D2B871.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2b87;
/* rgb */ color: rgb(45, 43, 135);
/* oklch */ color: oklch(35.6% 0.149 276.7);
Tailwind
colors: {
  custom: {
    50: '#7265ab',
    500: '#2d2b87',
    950: '#000000',
  },
}
SCSS
$custom: #2d2b87;
$custom-light: #7265ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2b87",
  "rgb": {
    "r": 45,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 241.304,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.14853,
    "h": 276.7
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#2D2B87
secondary
#B0B25B
accent
#DB4DD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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