#2D1FA5#2D1FA5

#2D1FA5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.199 H 275.3°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2D1FA5
RGBrgb(45, 31, 165)
HSLhsl(246, 68%, 38%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(72.7%, 81.2%, 0%, 35.3%)
CIE-LABlab(24.49, 47.84, -68.44)
CIE-LCHlch(24.49, 83.50, 304.95°)
OKLaboklab(37.03% 0.0182 -0.1979)
OKLCHoklch(37.03% 0.199 275.3)
XYZxyz(8.3615, 4.2537, 35.9704)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FA5 #97A51F
analogous
#1F54A5 #2D1FA5 #701FA5
triadic
#2D1FA5 #A52D1F #1FA52D
tetradic
#2D1FA5 #A51F54 #97A51F #1FA570
square
#2D1FA5 #A51F54 #97A51F #1FA570
split-complementary
#2D1FA5 #A5701F #54A51F
monochromatic
#110C3E #1F1571 #2D1FA5 #3C2AD7 #6B5EE1

Accessibility & contrast

On white

11.35
#2D1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FA5
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FA5#FFFFFF#000000##FFFFFF
##2D1FA51.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d1fa5;
/* rgb */ color: rgb(45, 31, 165);
/* oklch */ color: oklch(37.0% 0.199 275.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fc1',
    500: '#2d1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fa5;
$custom-light: #7a5fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fa5",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 246.269,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37027,
    "c": 0.19873,
    "h": 275.3
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#2D1FA5
secondary
#BAC55B
accent
#EB3DD9
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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