#2D1FA1#2D1FA1

#2D1FA1 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.194 H 275.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2D1FA1
RGBrgb(45, 31, 161)
HSLhsl(246, 68%, 38%)
HSVhsv(246, 81%, 63%)
CMYKcmyk(72%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.03, 46.60, -66.77)
CIE-LCHlch(24.03, 81.42, 304.91°)
OKLaboklab(36.57% 0.0193 -0.193)
OKLCHoklch(36.57% 0.194 275.7)
XYZxyz(8.0031, 4.1103, 34.0829)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FA1 #93A11F
analogous
#1F52A1 #2D1FA1 #6E1FA1
triadic
#2D1FA1 #A12D1F #1FA12D
tetradic
#2D1FA1 #A11F52 #93A11F #1FA16E
square
#2D1FA1 #A11F52 #93A11F #1FA16E
split-complementary
#2D1FA1 #A16E1F #52A11F
monochromatic
#100B3A #1F156E #2D1FA1 #3B29D4 #695BDF

Accessibility & contrast

On white

11.52
#2D1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2D1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FA1
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FA1#FFFFFF#000000##FFFFFF
##2D1FA11.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d1fa1;
/* rgb */ color: rgb(45, 31, 161);
/* oklch */ color: oklch(36.6% 0.194 275.7);
Tailwind
colors: {
  custom: {
    50: '#795fbe',
    500: '#2d1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fa1;
$custom-light: #795fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fa1",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 246.462,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36573,
    "c": 0.19401,
    "h": 275.7
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#2D1FA1
secondary
#B8C458
accent
#EB3DD8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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