#2D1FA7#2D1FA7

#2D1FA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.201 H 275.0°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2D1FA7
RGBrgb(45, 31, 167)
HSLhsl(246, 69%, 39%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(73.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.72, 48.45, -69.27)
CIE-LCHlch(24.72, 84.54, 304.97°)
OKLaboklab(37.26% 0.0177 -0.2003)
OKLCHoklch(37.26% 0.201 275)
XYZxyz(8.5449, 4.3270, 36.9366)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FA7 #99A71F
analogous
#1F55A7 #2D1FA7 #711FA7
triadic
#2D1FA7 #A72D1F #1FA72D
tetradic
#2D1FA7 #A71F55 #99A71F #1FA771
square
#2D1FA7 #A71F55 #99A71F #1FA771
split-complementary
#2D1FA7 #A7711F #55A71F
monochromatic
#110C40 #1F1573 #2D1FA7 #3D2BD8 #6C5FE1

Accessibility & contrast

On white

11.26
#2D1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FA7
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FA7#FFFFFF#000000##FFFFFF
##2D1FA71.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d1fa7;
/* rgb */ color: rgb(45, 31, 167);
/* oklch */ color: oklch(37.3% 0.201 275.0);
Tailwind
colors: {
  custom: {
    50: '#7a5fc3',
    500: '#2d1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fa7;
$custom-light: #7a5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fa7",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 246.176,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37255,
    "c": 0.20107,
    "h": 275
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#2D1FA7
secondary
#BBC65C
accent
#EC3CD9
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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