#2D1B95#2D1B95

#2D1B95 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.183 H 277.7°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2D1B95
RGBrgb(45, 27, 149)
HSLhsl(249, 69%, 35%)
HSVhsv(249, 82%, 58%)
CMYKcmyk(69.8%, 81.9%, 0%, 41.6%)
CIE-LABlab(21.98, 44.83, -62.81)
CIE-LCHlch(21.98, 77.16, 305.52°)
OKLaboklab(34.75% 0.0245 -0.1815)
OKLCHoklch(34.75% 0.183 277.7)
XYZxyz(6.8972, 3.5111, 28.7422)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B95 #83951B
analogous
#1B4695 #2D1B95 #6A1B95
triadic
#2D1B95 #952D1B #1B952D
tetradic
#2D1B95 #951B46 #83951B #1B956A
square
#2D1B95 #951B46 #83951B #1B956A
split-complementary
#2D1B95 #956A1B #46951B
monochromatic
#0E082D #1D1261 #2D1B95 #3D24C9 #624CDF

Accessibility & contrast

On white

12.34
#2D1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B95
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B95#FFFFFF#000000##FFFFFF
##2D1B951.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d1b95;
/* rgb */ color: rgb(45, 27, 149);
/* oklch */ color: oklch(34.7% 0.183 277.7);
Tailwind
colors: {
  custom: {
    50: '#775cb5',
    500: '#2d1b95',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b95;
$custom-light: #775cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b95",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 248.852,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.1831,
    "h": 277.7
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#2D1B95
secondary
#AFC14B
accent
#EC3CD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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