#2D1F85#2D1F85

#2D1F85 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.160 H 279.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2D1F85
RGBrgb(45, 31, 133)
HSLhsl(248, 62%, 32%)
HSVhsv(248, 77%, 52%)
CMYKcmyk(66.2%, 76.7%, 0%, 47.8%)
CIE-LABlab(20.95, 37.65, -54.55)
CIE-LCHlch(20.95, 66.28, 304.61°)
OKLaboklab(33.5% 0.0266 -0.1574)
OKLCHoklch(33.5% 0.16 279.6)
XYZxyz(5.8045, 3.2309, 22.5035)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F85 #77851F
analogous
#1F4485 #2D1F85 #601F85
triadic
#2D1F85 #852D1F #1F852D
tetradic
#2D1F85 #851F44 #77851F #1F8560
square
#2D1F85 #851F44 #77851F #1F8560
split-complementary
#2D1F85 #85601F #44851F
monochromatic
#0B0822 #1C1353 #2D1F85 #3E2BB7 #5D4AD5

Accessibility & contrast

On white

12.76
#2D1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F85
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F85#FFFFFF#000000##FFFFFF
##2D1F851.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1f85;
/* rgb */ color: rgb(45, 31, 133);
/* oklch */ color: oklch(33.5% 0.160 279.6);
Tailwind
colors: {
  custom: {
    50: '#735daa',
    500: '#2d1f85',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f85;
$custom-light: #735daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f85",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 248.235,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33497,
    "c": 0.15968,
    "h": 279.6
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#2D1F85
secondary
#A8B749
accent
#E543CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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