#2D1FB4#2D1FB4

#2D1FB4 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.8% C 0.216 H 273.8°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1FB4
RGBrgb(45, 31, 180)
HSLhsl(246, 71%, 41%)
HSVhsv(246, 83%, 71%)
CMYKcmyk(75%, 82.8%, 0%, 29.4%)
CIE-LABlab(26.25, 52.40, -74.55)
CIE-LCHlch(26.25, 91.13, 305.10°)
OKLaboklab(38.75% 0.0142 -0.2156)
OKLCHoklch(38.75% 0.216 273.8)
XYZxyz(9.8077, 4.8321, 43.5870)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FB4 #A6B41F
analogous
#1F5BB4 #2D1FB4 #781FB4
triadic
#2D1FB4 #B42D1F #1FB42D
tetradic
#2D1FB4 #B41F5B #A6B41F #1FB478
square
#2D1FB4 #B41F5B #A6B41F #1FB478
split-complementary
#2D1FB4 #B4781F #5BB41F
monochromatic
#130D4C #201680 #2D1FB4 #4434DC #7468E5

Accessibility & contrast

On white

10.68
#2D1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FB4
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FB4#FFFFFF#000000##FFFFFF
##2D1FB41.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0037B2
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d1fb4;
/* rgb */ color: rgb(45, 31, 180);
/* oklch */ color: oklch(38.8% 0.216 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d60cc',
    500: '#2d1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fb4;
$custom-light: #7d60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fb4",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 245.638,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38753,
    "c": 0.21608,
    "h": 273.8
  },
  "luminance": 0.04833
}

Semantic roles & 50–950 ramp

primary
#2D1FB4
secondary
#C1CB64
accent
#ED3ADD
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2D1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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