#2D1F91#2D1F91

#2D1F91 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.175 H 277.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2D1F91
RGBrgb(45, 31, 145)
HSLhsl(247, 65%, 35%)
HSVhsv(247, 79%, 57%)
CMYKcmyk(69%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.24, 41.54, -59.91)
CIE-LCHlch(22.24, 72.91, 304.73°)
OKLaboklab(34.79% 0.0236 -0.1731)
OKLCHoklch(34.79% 0.175 277.8)
XYZxyz(6.6814, 3.5816, 27.1218)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F91 #83911F
analogous
#1F4A91 #2D1F91 #661F91
triadic
#2D1F91 #912D1F #1F912D
tetradic
#2D1F91 #911F4A #83911F #1F9166
square
#2D1F91 #911F4A #83911F #1F9166
split-complementary
#2D1F91 #91661F #4A911F
monochromatic
#0E092C #1D145F #2D1F91 #3D2AC3 #6251DA

Accessibility & contrast

On white

12.23
#2D1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1F91
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F91#FFFFFF#000000##FFFFFF
##2D1F911.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d1f91;
/* rgb */ color: rgb(45, 31, 145);
/* oklch */ color: oklch(34.8% 0.175 277.8);
Tailwind
colors: {
  custom: {
    50: '#755db2',
    500: '#2d1f91',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f91;
$custom-light: #755db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f91",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 247.368,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3479,
    "c": 0.17469,
    "h": 277.8
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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