#2D1E97#2D1E97

#2D1E97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.183 H 277.1°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2D1E97
RGBrgb(45, 30, 151)
HSLhsl(247, 67%, 35%)
HSVhsv(247, 80%, 59%)
CMYKcmyk(70.2%, 80.1%, 0%, 40.8%)
CIE-LABlab(22.72, 43.96, -62.82)
CIE-LCHlch(22.72, 76.67, 304.99°)
OKLaboklab(35.33% 0.0225 -0.1815)
OKLCHoklch(35.33% 0.183 277.1)
XYZxyz(7.1306, 3.7202, 29.6144)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E97 #88971E
analogous
#1E4B97 #2D1E97 #691E97
triadic
#2D1E97 #972D1E #1E972D
tetradic
#2D1E97 #971E4B #88971E #1E9769
square
#2D1E97 #971E4B #88971E #1E9769
split-complementary
#2D1E97 #97691E #4B971E
monochromatic
#0F0A31 #1E1464 #2D1E97 #3C28CA #6453DD

Accessibility & contrast

On white

12.04
#2D1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E97
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E97#FFFFFF#000000##FFFFFF
##2D1E971.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1e97;
/* rgb */ color: rgb(45, 30, 151);
/* oklch */ color: oklch(35.3% 0.183 277.1);
Tailwind
colors: {
  custom: {
    50: '#775db7',
    500: '#2d1e97',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e97;
$custom-light: #775db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e97",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 247.438,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35328,
    "c": 0.18292,
    "h": 277.1
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#2D1E97
secondary
#B2C051
accent
#EA3ED4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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