#2D1F92#2D1F92

#2D1F92 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.176 H 277.6°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2D1F92
RGBrgb(45, 31, 146)
HSLhsl(247, 65%, 35%)
HSVhsv(247, 79%, 57%)
CMYKcmyk(69.2%, 78.8%, 0%, 42.7%)
CIE-LABlab(22.35, 41.86, -60.35)
CIE-LCHlch(22.35, 73.45, 304.74°)
OKLaboklab(34.9% 0.0233 -0.1744)
OKLCHoklch(34.9% 0.176 277.6)
XYZxyz(6.7588, 3.6126, 27.5297)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F92 #84921F
analogous
#1F4B92 #2D1F92 #661F92
triadic
#2D1F92 #922D1F #1F922D
tetradic
#2D1F92 #921F4B #84921F #1F9266
square
#2D1F92 #921F4B #84921F #1F9266
split-complementary
#2D1F92 #92661F #4B921F
monochromatic
#0E0A2D #1D1460 #2D1F92 #3D2AC4 #6251DA

Accessibility & contrast

On white

12.19
#2D1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F92
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F92#FFFFFF#000000##FFFFFF
##2D1F921.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003190
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d1f92;
/* rgb */ color: rgb(45, 31, 146);
/* oklch */ color: oklch(34.9% 0.176 277.6);
Tailwind
colors: {
  custom: {
    50: '#765eb3',
    500: '#2d1f92',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f92;
$custom-light: #765eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f92",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 247.304,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.349,
    "c": 0.17592,
    "h": 277.6
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#2D1F92
secondary
#B0BD50
accent
#E840D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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