#2D1F97#2D1F97

#2D1F97 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.182 H 276.9°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2D1F97
RGBrgb(45, 31, 151)
HSLhsl(247, 66%, 36%)
HSVhsv(247, 79%, 59%)
CMYKcmyk(70.2%, 79.5%, 0%, 40.8%)
CIE-LABlab(22.90, 43.45, -62.52)
CIE-LCHlch(22.90, 76.14, 304.80°)
OKLaboklab(35.45% 0.022 -0.1807)
OKLCHoklch(35.45% 0.182 276.9)
XYZxyz(7.1563, 3.7716, 29.6230)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F97 #89971F
analogous
#1F4D97 #2D1F97 #691F97
triadic
#2D1F97 #972D1F #1F972D
tetradic
#2D1F97 #971F4D #89971F #1F9769
square
#2D1F97 #971F4D #89971F #1F9769
split-complementary
#2D1F97 #97691F #4D971F
monochromatic
#0F0A31 #1E1564 #2D1F97 #3C29CA #6454DC

Accessibility & contrast

On white

11.97
#2D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F97
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F97#FFFFFF#000000##FFFFFF
##2D1F971.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1f97;
/* rgb */ color: rgb(45, 31, 151);
/* oklch */ color: oklch(35.5% 0.182 276.9);
Tailwind
colors: {
  custom: {
    50: '#775eb7',
    500: '#2d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f97;
$custom-light: #775eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f97",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 247,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35452,
    "c": 0.18202,
    "h": 276.9
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#2D1F97
secondary
#B3BF52
accent
#E93FD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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