#2D1A91#2D1A91

#2D1A91 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.179 H 278.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2D1A91
RGBrgb(45, 26, 145)
HSLhsl(250, 70%, 34%)
HSVhsv(250, 82%, 57%)
CMYKcmyk(69%, 82.1%, 0%, 43.1%)
CIE-LABlab(21.36, 44.08, -61.37)
CIE-LCHlch(21.36, 75.55, 305.69°)
OKLaboklab(34.18% 0.0261 -0.1772)
OKLCHoklch(34.18% 0.179 278.4)
XYZxyz(6.5608, 3.3404, 27.0816)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A91 #7E911A
analogous
#1A4291 #2D1A91 #681A91
triadic
#2D1A91 #912D1A #1A912D
tetradic
#2D1A91 #911A42 #7E911A #1A9168
square
#2D1A91 #911A42 #7E911A #1A9168
split-complementary
#2D1A91 #91681A #42911A
monochromatic
#0D0729 #1D115D #2D1A91 #3D23C5 #5F47DE

Accessibility & contrast

On white

12.59
#2D1A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D1A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A91
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A91#FFFFFF#000000##FFFFFF
##2D1A911.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002E8F
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1a91;
/* rgb */ color: rgb(45, 26, 145);
/* oklch */ color: oklch(34.2% 0.179 278.4);
Tailwind
colors: {
  custom: {
    50: '#765bb3',
    500: '#2d1a91',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a91;
$custom-light: #765bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a91",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 249.58,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34178,
    "c": 0.17916,
    "h": 278.4
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#2D1A91
secondary
#ACC047
accent
#EC3BD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1A91

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

Preview Lab → · Contrast checker → · Palette generator →

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