#2D1D91#2D1D91

#2D1D91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.177 H 278.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2D1D91
RGBrgb(45, 29, 145)
HSLhsl(248, 67%, 34%)
HSVhsv(248, 80%, 57%)
CMYKcmyk(69%, 80%, 0%, 43.1%)
CIE-LABlab(21.87, 42.58, -60.51)
CIE-LCHlch(21.87, 74.00, 305.13°)
OKLaboklab(34.54% 0.0246 -0.1748)
OKLCHoklch(34.54% 0.177 278)
XYZxyz(6.6307, 3.4804, 27.1049)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D91 #81911D
analogous
#1D4791 #2D1D91 #671D91
triadic
#2D1D91 #912D1D #1D912D
tetradic
#2D1D91 #911D47 #81911D #1D9167
square
#2D1D91 #911D47 #81911D #1D9167
split-complementary
#2D1D91 #91671D #47911D
monochromatic
#0D092B #1D135E #2D1D91 #3D27C4 #614DDB

Accessibility & contrast

On white

12.38
#2D1D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1D91
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D91#FFFFFF#000000##FFFFFF
##2D1D911.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d1d91;
/* rgb */ color: rgb(45, 29, 145);
/* oklch */ color: oklch(34.5% 0.177 278.0);
Tailwind
colors: {
  custom: {
    50: '#755cb2',
    500: '#2d1d91',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d91;
$custom-light: #755cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d91",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 145
  },
  "hsl": {
    "h": 248.276,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34536,
    "c": 0.17655,
    "h": 278
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#2D1D91
secondary
#AEBE4C
accent
#EA3ED2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1D91

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

Preview Lab → · Contrast checker → · Palette generator →

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