#2D1F95#2D1F95

#2D1F95 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.180 H 277.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1F95
RGBrgb(45, 31, 149)
HSLhsl(247, 66%, 35%)
HSVhsv(247, 79%, 58%)
CMYKcmyk(69.8%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.68, 42.82, -61.66)
CIE-LCHlch(22.68, 75.07, 304.78°)
OKLaboklab(35.23% 0.0225 -0.1782)
OKLCHoklch(35.23% 0.18 277.2)
XYZxyz(6.9952, 3.7072, 28.7749)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F95 #87951F
analogous
#1F4C95 #2D1F95 #681F95
triadic
#2D1F95 #952D1F #1F952D
tetradic
#2D1F95 #951F4C #87951F #1F9568
square
#2D1F95 #951F4C #87951F #1F9568
split-complementary
#2D1F95 #95681F #4C951F
monochromatic
#0E0A30 #1E1462 #2D1F95 #3C2AC8 #6353DB

Accessibility & contrast

On white

12.06
#2D1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F95
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F95#FFFFFF#000000##FFFFFF
##2D1F951.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1f95;
/* rgb */ color: rgb(45, 31, 149);
/* oklch */ color: oklch(35.2% 0.180 277.2);
Tailwind
colors: {
  custom: {
    50: '#765eb5',
    500: '#2d1f95',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f95;
$custom-light: #765eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f95",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 247.119,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3523,
    "c": 0.17959,
    "h": 277.2
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#2D1F95
secondary
#B2BF51
accent
#E93FD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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