#2D1EA7#2D1EA7

#2D1EA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.1% C 0.202 H 275.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2D1EA7
RGBrgb(45, 30, 167)
HSLhsl(247, 70%, 39%)
HSVhsv(247, 82%, 65%)
CMYKcmyk(73.1%, 82%, 0%, 34.5%)
CIE-LABlab(24.56, 48.93, -69.54)
CIE-LCHlch(24.56, 85.03, 305.13°)
OKLaboklab(37.14% 0.0181 -0.2011)
OKLCHoklch(37.14% 0.202 275.1)
XYZxyz(8.5192, 4.2756, 36.9280)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1EA7 #98A71E
analogous
#1E53A7 #2D1EA7 #711EA7
triadic
#2D1EA7 #A72D1E #1EA72D
tetradic
#2D1EA7 #A71E53 #98A71E #1EA771
square
#2D1EA7 #A71E53 #98A71E #1EA771
split-complementary
#2D1EA7 #A7711E #53A71E
monochromatic
#110B3F #1F1573 #2D1EA7 #3D2AD9 #6C5DE2

Accessibility & contrast

On white

11.32
#2D1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1EA7
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1EA7#FFFFFF#000000##FFFFFF
##2D1EA71.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d1ea7;
/* rgb */ color: rgb(45, 30, 167);
/* oklch */ color: oklch(37.1% 0.202 275.1);
Tailwind
colors: {
  custom: {
    50: '#7a5ec3',
    500: '#2d1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2d1ea7;
$custom-light: #7a5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1ea7",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 246.569,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37143,
    "c": 0.20187,
    "h": 275.1
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

primary
#2D1EA7
secondary
#BAC65B
accent
#EC3BD9
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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