#2D2687#2D2687

#2D2687 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.155 H 277.9°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2D2687
RGBrgb(45, 38, 135)
HSLhsl(244, 56%, 34%)
HSVhsv(244, 72%, 53%)
CMYKcmyk(66.7%, 71.9%, 0%, 47.1%)
CIE-LABlab(22.63, 34.20, -53.03)
CIE-LCHlch(22.63, 63.10, 302.81°)
OKLaboklab(34.76% 0.0212 -0.1531)
OKLCHoklch(34.76% 0.155 277.9)
XYZxyz(6.1471, 3.6929, 23.3058)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2687 #808726
analogous
#265087 #2D2687 #5E2687
triadic
#2D2687 #872D26 #26872D
tetradic
#2D2687 #872650 #808726 #26875E
square
#2D2687 #872650 #808726 #26875E
split-complementary
#2D2687 #875E26 #508726
monochromatic
#0D0B27 #1D1957 #2D2687 #3D33B7 #6058D0

Accessibility & contrast

On white

12.08
#2D2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2687
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2687#FFFFFF#000000##FFFFFF
##2D26871.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2687;
/* rgb */ color: rgb(45, 38, 135);
/* oklch */ color: oklch(34.8% 0.155 277.9);
Tailwind
colors: {
  custom: {
    50: '#7261ab',
    500: '#2d2687',
    950: '#000000',
  },
}
SCSS
$custom: #2d2687;
$custom-light: #7261ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2687",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 244.33,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34756,
    "c": 0.15453,
    "h": 277.9
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#2D2687
secondary
#AEB554
accent
#DF48D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2687

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

Preview Lab → · Contrast checker → · Palette generator →

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