#2D1F96#2D1F96

#2D1F96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.181 H 277.1°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2D1F96
RGBrgb(45, 31, 150)
HSLhsl(247, 66%, 35%)
HSVhsv(247, 79%, 59%)
CMYKcmyk(70%, 79.3%, 0%, 41.2%)
CIE-LABlab(22.79, 43.14, -62.09)
CIE-LCHlch(22.79, 75.60, 304.79°)
OKLaboklab(35.34% 0.0223 -0.1794)
OKLCHoklch(35.34% 0.181 277.1)
XYZxyz(7.0754, 3.7392, 29.1971)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F96 #88961F
analogous
#1F4C96 #2D1F96 #681F96
triadic
#2D1F96 #962D1F #1F962D
tetradic
#2D1F96 #961F4C #88961F #1F9668
square
#2D1F96 #961F4C #88961F #1F9668
split-complementary
#2D1F96 #96681F #4C961F
monochromatic
#0F0A31 #1E1563 #2D1F96 #3C29C9 #6454DC

Accessibility & contrast

On white

12.01
#2D1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F96
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F96#FFFFFF#000000##FFFFFF
##2D1F961.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1f96;
/* rgb */ color: rgb(45, 31, 150);
/* oklch */ color: oklch(35.3% 0.181 277.1);
Tailwind
colors: {
  custom: {
    50: '#765eb6',
    500: '#2d1f96',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f96;
$custom-light: #765eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f96",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 247.059,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35341,
    "c": 0.1808,
    "h": 277.1
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#2D1F96
secondary
#B2BF52
accent
#E93FD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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