#2D2887#2D2887

#2D2887 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.152 H 277.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2D2887
RGBrgb(45, 40, 135)
HSLhsl(243, 54%, 34%)
HSVhsv(243, 70%, 53%)
CMYKcmyk(66.7%, 70.4%, 0%, 47.1%)
CIE-LABlab(23.08, 32.96, -52.29)
CIE-LCHlch(23.08, 61.81, 302.22°)
OKLaboklab(35.08% 0.0197 -0.1509)
OKLCHoklch(35.08% 0.152 277.4)
XYZxyz(6.2127, 3.8242, 23.3277)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2887 #828728
analogous
#285387 #2D2887 #5D2887
triadic
#2D2887 #872D28 #28872D
tetradic
#2D2887 #872853 #828728 #28875D
square
#2D2887 #872853 #828728 #28875D
split-complementary
#2D2887 #875D28 #538728
monochromatic
#0E0C29 #1D1A58 #2D2887 #3D36B6 #615BCE

Accessibility & contrast

On white

11.90
#2D2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2887
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2887#FFFFFF#000000##FFFFFF
##2D28871.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2887;
/* rgb */ color: rgb(45, 40, 135);
/* oklch */ color: oklch(35.1% 0.152 277.4);
Tailwind
colors: {
  custom: {
    50: '#7263ab',
    500: '#2d2887',
    950: '#000000',
  },
}
SCSS
$custom: #2d2887;
$custom-light: #7263ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2887",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 243.158,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35081,
    "c": 0.15218,
    "h": 277.4
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#2D2887
secondary
#AFB457
accent
#DE4AD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2887

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

Preview Lab → · Contrast checker → · Palette generator →

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