#2D2871#2D2871

#2D2871 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.122 H 280.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2D2871
RGBrgb(45, 40, 113)
HSLhsl(244, 48%, 30%)
HSVhsv(244, 65%, 44%)
CMYKcmyk(60.2%, 64.6%, 0%, 55.7%)
CIE-LABlab(21.08, 25.23, -41.59)
CIE-LCHlch(21.08, 48.65, 301.24°)
OKLaboklab(33.01% 0.0221 -0.1195)
OKLCHoklch(33.01% 0.122 280.5)
XYZxyz(4.8207, 3.2674, 15.9962)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2871 #6C7128
analogous
#284771 #2D2871 #522871
triadic
#2D2871 #712D28 #28712D
tetradic
#2D2871 #712847 #6C7128 #287152
square
#2D2871 #712847 #6C7128 #287152
split-complementary
#2D2871 #715228 #477128
monochromatic
#090817 #1B1844 #2D2871 #3F389E #5952C2

Accessibility & contrast

On white

12.70
#2D2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2871
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2871#FFFFFF#000000##FFFFFF
##2D28711.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#063A48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2871;
/* rgb */ color: rgb(45, 40, 113);
/* oklch */ color: oklch(33.0% 0.122 280.5);
Tailwind
colors: {
  custom: {
    50: '#6e629a',
    500: '#2d2871',
    950: '#000000',
  },
}
SCSS
$custom: #2d2871;
$custom-light: #6e629a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2871",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 244.11,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.33013,
    "c": 0.12154,
    "h": 280.5
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#2D2871
secondary
#9EA352
accent
#D750CE
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2871

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

Preview Lab → · Contrast checker → · Palette generator →

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