#2D1F7D#2D1F7D

#2D1F7D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.149 H 281.0°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2D1F7D
RGBrgb(45, 31, 125)
HSLhsl(249, 60%, 31%)
HSVhsv(249, 75%, 49%)
CMYKcmyk(64%, 75.2%, 0%, 51%)
CIE-LABlab(20.12, 35.02, -50.85)
CIE-LCHlch(20.12, 61.75, 304.55°)
OKLaboklab(32.66% 0.0285 -0.1467)
OKLCHoklch(32.66% 0.149 281)
XYZxyz(5.2727, 3.0181, 19.7028)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F7D #6F7D1F
analogous
#1F407D #2D1F7D #5C1F7D
triadic
#2D1F7D #7D2D1F #1F7D2D
tetradic
#2D1F7D #7D1F40 #6F7D1F #1F7D5C
square
#2D1F7D #7D1F40 #6F7D1F #1F7D5C
split-complementary
#2D1F7D #7D5C1F #407D1F
monochromatic
#0A071B #1B134C #2D1F7D #3F2BAE #5A45D1

Accessibility & contrast

On white

13.09
#2D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F7D
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F7D#FFFFFF#000000##FFFFFF
##2D1F7D1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1f7d;
/* rgb */ color: rgb(45, 31, 125);
/* oklch */ color: oklch(32.7% 0.149 281.0);
Tailwind
colors: {
  custom: {
    50: '#715ca4',
    500: '#2d1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f7d;
$custom-light: #715ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f7d",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 248.936,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3266,
    "c": 0.1494,
    "h": 281
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#2D1F7D
secondary
#A1B048
accent
#E344CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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