#2D1F8D#2D1F8D

#2D1F8D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.170 H 278.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2D1F8D
RGBrgb(45, 31, 141)
HSLhsl(248, 64%, 34%)
HSVhsv(248, 78%, 55%)
CMYKcmyk(68.1%, 78%, 0%, 44.7%)
CIE-LABlab(21.80, 40.25, -58.15)
CIE-LCHlch(21.80, 70.72, 304.69°)
OKLaboklab(34.36% 0.0246 -0.1679)
OKLCHoklch(34.36% 0.17 278.3)
XYZxyz(6.3783, 3.4604, 25.5259)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F8D #7F8D1F
analogous
#1F488D #2D1F8D #641F8D
triadic
#2D1F8D #8D2D1F #1F8D2D
tetradic
#2D1F8D #8D1F48 #7F8D1F #1F8D64
square
#2D1F8D #8D1F48 #7F8D1F #1F8D64
split-complementary
#2D1F8D #8D641F #488D1F
monochromatic
#0D0929 #1D145B #2D1F8D #3D2ABF #604ED8

Accessibility & contrast

On white

12.41
#2D1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F8D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F8D#FFFFFF#000000##FFFFFF
##2D1F8D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d1f8d;
/* rgb */ color: rgb(45, 31, 141);
/* oklch */ color: oklch(34.4% 0.170 278.3);
Tailwind
colors: {
  custom: {
    50: '#745daf',
    500: '#2d1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f8d;
$custom-light: #745daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f8d",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 247.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34355,
    "c": 0.16974,
    "h": 278.3
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#2D1F8D
secondary
#ADBB4D
accent
#E741D2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2D1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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