#2D1FA6#2D1FA6

#2D1FA6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.200 H 275.2°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2D1FA6
RGBrgb(45, 31, 166)
HSLhsl(246, 69%, 39%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(72.9%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.61, 48.14, -68.86)
CIE-LCHlch(24.61, 84.02, 304.96°)
OKLaboklab(37.14% 0.018 -0.1991)
OKLCHoklch(37.14% 0.2 275.2)
XYZxyz(8.4528, 4.2902, 36.4516)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FA6 #98A61F
analogous
#1F54A6 #2D1FA6 #701FA6
triadic
#2D1FA6 #A62D1F #1FA62D
tetradic
#2D1FA6 #A61F54 #98A61F #1FA670
square
#2D1FA6 #A61F54 #98A61F #1FA670
split-complementary
#2D1FA6 #A6701F #54A61F
monochromatic
#110C3F #1F1572 #2D1FA6 #3D2BD7 #6C5EE1

Accessibility & contrast

On white

11.30
#2D1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FA6
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FA6#FFFFFF#000000##FFFFFF
##2D1FA61.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1fa6;
/* rgb */ color: rgb(45, 31, 166);
/* oklch */ color: oklch(37.1% 0.200 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fc2',
    500: '#2d1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fa6;
$custom-light: #7a5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fa6",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 246.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37141,
    "c": 0.1999,
    "h": 275.2
  },
  "luminance": 0.04291
}

Semantic roles & 50–950 ramp

primary
#2D1FA6
secondary
#BAC55B
accent
#EB3CD9
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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