#2D1FA4#2D1FA4

#2D1FA4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.198 H 275.4°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2D1FA4
RGBrgb(45, 31, 164)
HSLhsl(246, 68%, 38%)
HSVhsv(246, 81%, 64%)
CMYKcmyk(72.6%, 81.1%, 0%, 35.7%)
CIE-LABlab(24.38, 47.53, -68.03)
CIE-LCHlch(24.38, 82.98, 304.94°)
OKLaboklab(36.91% 0.0185 -0.1967)
OKLCHoklch(36.91% 0.198 275.4)
XYZxyz(8.2708, 4.2174, 35.4929)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FA4 #96A41F
analogous
#1F53A4 #2D1FA4 #6F1FA4
triadic
#2D1FA4 #A42D1F #1FA42D
tetradic
#2D1FA4 #A41F53 #96A41F #1FA46F
square
#2D1FA4 #A41F53 #96A41F #1FA46F
split-complementary
#2D1FA4 #A46F1F #53A41F
monochromatic
#110C3D #1F1571 #2D1FA4 #3C2AD7 #6B5DE0

Accessibility & contrast

On white

11.39
#2D1FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D1FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FA4
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FA4#FFFFFF#000000##FFFFFF
##2D1FA41.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d1fa4;
/* rgb */ color: rgb(45, 31, 164);
/* oklch */ color: oklch(36.9% 0.198 275.4);
Tailwind
colors: {
  custom: {
    50: '#7a5fc0',
    500: '#2d1fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fa4;
$custom-light: #7a5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fa4",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 246.316,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36913,
    "c": 0.19755,
    "h": 275.4
  },
  "luminance": 0.04218
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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