#2D2E87#2D2E87

#2D2E87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.145 H 275.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2D2E87
RGBrgb(45, 46, 135)
HSLhsl(239, 50%, 35%)
HSVhsv(239, 67%, 53%)
CMYKcmyk(66.7%, 65.9%, 0%, 47.1%)
CIE-LABlab(24.51, 29.11, -49.95)
CIE-LCHlch(24.51, 57.81, 300.23°)
OKLaboklab(36.12% 0.0148 -0.144)
OKLCHoklch(36.12% 0.145 275.9)
XYZxyz(6.4309, 4.2606, 23.4005)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2E87 #87862D
analogous
#2D5B87 #2D2E87 #592D87
triadic
#2D2E87 #872D2E #2E872D
tetradic
#2D2E87 #872D5B #87862D #2D8759
square
#2D2E87 #872D5B #87862D #2D8759
split-complementary
#2D2E87 #87592D #5B872D
monochromatic
#0E0F2B #1E1E59 #2D2E87 #3C3EB5 #6364CB

Accessibility & contrast

On white

11.34
#2D2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2E87
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2E87#FFFFFF#000000##FFFFFF
##2D2E871.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2e87;
/* rgb */ color: rgb(45, 46, 135);
/* oklch */ color: oklch(36.1% 0.145 275.9);
Tailwind
colors: {
  custom: {
    50: '#7267ab',
    500: '#2d2e87',
    950: '#000000',
  },
}
SCSS
$custom: #2d2e87;
$custom-light: #7267ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2e87",
  "rgb": {
    "r": 45,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 239.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36121,
    "c": 0.14476,
    "h": 275.9
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#2D2E87
secondary
#B2B15E
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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