#2D1BA7#2D1BA7

#2D1BA7 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.8% C 0.204 H 275.4°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2D1BA7
RGBrgb(45, 27, 167)
HSLhsl(248, 72%, 38%)
HSVhsv(248, 84%, 65%)
CMYKcmyk(73.1%, 83.8%, 0%, 34.5%)
CIE-LABlab(24.10, 50.29, -70.31)
CIE-LCHlch(24.10, 86.44, 305.57°)
OKLaboklab(36.82% 0.0191 -0.2032)
OKLCHoklch(36.82% 0.204 275.4)
XYZxyz(8.4469, 4.1309, 36.9039)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1BA7 #95A71B
analogous
#1B4FA7 #2D1BA7 #731BA7
triadic
#2D1BA7 #A72D1B #1BA72D
tetradic
#2D1BA7 #A71B4F #95A71B #1BA773
square
#2D1BA7 #A71B4F #95A71B #1BA773
split-complementary
#2D1BA7 #A7731B #4FA71B
monochromatic
#110A3E #1F1272 #2D1BA7 #3B24DC #6A58E4

Accessibility & contrast

On white

11.50
#2D1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1BA7
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1BA7#FFFFFF#000000##FFFFFF
##2D1BA71.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0033A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d1ba7;
/* rgb */ color: rgb(45, 27, 167);
/* oklch */ color: oklch(36.8% 0.204 275.4);
Tailwind
colors: {
  custom: {
    50: '#7b5dc3',
    500: '#2d1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #2d1ba7;
$custom-light: #7b5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1ba7",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 247.714,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36823,
    "c": 0.20413,
    "h": 275.4
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

primary
#2D1BA7
secondary
#B9C856
accent
#EF39D7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2D1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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