#2D1F7F#2D1F7F

#2D1F7F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.152 H 280.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2D1F7F
RGBrgb(45, 31, 127)
HSLhsl(249, 61%, 31%)
HSVhsv(249, 76%, 50%)
CMYKcmyk(64.6%, 75.6%, 0%, 50.2%)
CIE-LABlab(20.32, 35.68, -51.79)
CIE-LCHlch(20.32, 62.89, 304.56°)
OKLaboklab(32.87% 0.028 -0.1494)
OKLCHoklch(32.87% 0.152 280.6)
XYZxyz(5.4017, 3.0698, 20.3824)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F7F #717F1F
analogous
#1F417F #2D1F7F #5D1F7F
triadic
#2D1F7F #7F2D1F #1F7F2D
tetradic
#2D1F7F #7F1F41 #717F1F #1F7F5D
square
#2D1F7F #7F1F41 #717F1F #1F7F5D
split-complementary
#2D1F7F #7F5D1F #417F1F
monochromatic
#0A071D #1C134E #2D1F7F #3E2BB0 #5B46D2

Accessibility & contrast

On white

13.01
#2D1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F7F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F7F#FFFFFF#000000##FFFFFF
##2D1F7F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1f7f;
/* rgb */ color: rgb(45, 31, 127);
/* oklch */ color: oklch(32.9% 0.152 280.6);
Tailwind
colors: {
  custom: {
    50: '#715da5',
    500: '#2d1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f7f;
$custom-light: #715da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f7f",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 248.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32867,
    "c": 0.15199,
    "h": 280.6
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#2D1F7F
secondary
#A3B248
accent
#E444CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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