#2D1FA9#2D1FA9

#2D1FA9 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.5% C 0.203 H 274.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2D1FA9
RGBrgb(45, 31, 169)
HSLhsl(246, 69%, 39%)
HSVhsv(246, 82%, 66%)
CMYKcmyk(73.4%, 81.7%, 0%, 33.7%)
CIE-LABlab(24.96, 49.07, -70.09)
CIE-LCHlch(24.96, 85.56, 304.99°)
OKLaboklab(37.48% 0.0172 -0.2027)
OKLCHoklch(37.48% 0.203 274.8)
XYZxyz(8.7312, 4.4016, 37.9179)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FA9 #9BA91F
analogous
#1F56A9 #2D1FA9 #721FA9
triadic
#2D1FA9 #A92D1F #1FA92D
tetradic
#2D1FA9 #A91F56 #9BA91F #1FA972
square
#2D1FA9 #A91F56 #9BA91F #1FA972
split-complementary
#2D1FA9 #A9721F #56A91F
monochromatic
#110C42 #1F1675 #2D1FA9 #3E2DD8 #6E60E2

Accessibility & contrast

On white

11.17
#2D1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FA9
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FA9#FFFFFF#000000##FFFFFF
##2D1FA91.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0035A7
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d1fa9;
/* rgb */ color: rgb(45, 31, 169);
/* oklch */ color: oklch(37.5% 0.203 274.8);
Tailwind
colors: {
  custom: {
    50: '#7b5fc4',
    500: '#2d1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fa9;
$custom-light: #7b5fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fa9",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 246.087,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37484,
    "c": 0.2034,
    "h": 274.8
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#2D1FA9
secondary
#BCC75D
accent
#EC3CDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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