#2D1A95#2D1A95

#2D1A95 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.184 H 277.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2D1A95
RGBrgb(45, 26, 149)
HSLhsl(249, 70%, 34%)
HSVhsv(249, 83%, 58%)
CMYKcmyk(69.8%, 82.6%, 0%, 41.6%)
CIE-LABlab(21.82, 45.30, -63.08)
CIE-LCHlch(21.82, 77.66, 305.69°)
OKLaboklab(34.63% 0.0249 -0.1822)
OKLCHoklch(34.63% 0.184 277.8)
XYZxyz(6.8746, 3.4660, 28.7347)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A95 #82951A
analogous
#1A4595 #2D1A95 #6B1A95
triadic
#2D1A95 #952D1A #1A952D
tetradic
#2D1A95 #951A45 #82951A #1A956B
square
#2D1A95 #951A45 #82951A #1A956B
split-complementary
#2D1A95 #956B1A #45951A
monochromatic
#0E082D #1D1161 #2D1A95 #3D23C9 #614ADF

Accessibility & contrast

On white

12.40
#2D1A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D1A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A95
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A95#FFFFFF#000000##FFFFFF
##2D1A951.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1a95;
/* rgb */ color: rgb(45, 26, 149);
/* oklch */ color: oklch(34.6% 0.184 277.8);
Tailwind
colors: {
  custom: {
    50: '#775bb5',
    500: '#2d1a95',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a95;
$custom-light: #775bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a95",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 249.268,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34634,
    "c": 0.18392,
    "h": 277.8
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#2D1A95
secondary
#AFC14A
accent
#ED3BD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1A95

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

Preview Lab → · Contrast checker → · Palette generator →

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