#2D2987#2D2987

#2D2987 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.151 H 277.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2D2987
RGBrgb(45, 41, 135)
HSLhsl(243, 53%, 35%)
HSVhsv(243, 70%, 53%)
CMYKcmyk(66.7%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.31, 32.33, -51.91)
CIE-LCHlch(23.31, 61.16, 301.91°)
OKLaboklab(35.25% 0.0189 -0.1498)
OKLCHoklch(35.25% 0.151 277.2)
XYZxyz(6.2469, 3.8925, 23.3391)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2987 #838729
analogous
#295487 #2D2987 #5C2987
triadic
#2D2987 #872D29 #29872D
tetradic
#2D2987 #872954 #838729 #29875C
square
#2D2987 #872954 #838729 #29875C
split-complementary
#2D2987 #875C29 #548729
monochromatic
#0E0C29 #1D1B58 #2D2987 #3D37B6 #625DCE

Accessibility & contrast

On white

11.81
#2D2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2987
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2987#FFFFFF#000000##FFFFFF
##2D29871.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2987;
/* rgb */ color: rgb(45, 41, 135);
/* oklch */ color: oklch(35.2% 0.151 277.2);
Tailwind
colors: {
  custom: {
    50: '#7263ab',
    500: '#2d2987',
    950: '#000000',
  },
}
SCSS
$custom: #2d2987;
$custom-light: #7263ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2987",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 242.553,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35248,
    "c": 0.15098,
    "h": 277.2
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#2D2987
secondary
#AFB359
accent
#DD4BD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2987

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

Preview Lab → · Contrast checker → · Palette generator →

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