#2D1F99#2D1F99

#2D1F99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.184 H 276.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2D1F99
RGBrgb(45, 31, 153)
HSLhsl(247, 66%, 36%)
HSVhsv(247, 80%, 60%)
CMYKcmyk(70.6%, 79.7%, 0%, 40%)
CIE-LABlab(23.13, 44.09, -63.38)
CIE-LCHlch(23.13, 77.21, 304.82°)
OKLaboklab(35.67% 0.0215 -0.1832)
OKLCHoklch(35.67% 0.184 276.7)
XYZxyz(7.3201, 3.8371, 30.4857)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F99 #8B991F
analogous
#1F4E99 #2D1F99 #6A1F99
triadic
#2D1F99 #992D1F #1F992D
tetradic
#2D1F99 #991F4E #8B991F #1F996A
square
#2D1F99 #991F4E #8B991F #1F996A
split-complementary
#2D1F99 #996A1F #4E991F
monochromatic
#0F0A33 #1E1566 #2D1F99 #3C29CC #6556DD

Accessibility & contrast

On white

11.88
#2D1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F99
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F99#FFFFFF#000000##FFFFFF
##2D1F991.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1f99;
/* rgb */ color: rgb(45, 31, 153);
/* oklch */ color: oklch(35.7% 0.184 276.7);
Tailwind
colors: {
  custom: {
    50: '#775eb8',
    500: '#2d1f99',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f99;
$custom-light: #775eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f99",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 246.885,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35674,
    "c": 0.18444,
    "h": 276.7
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#2D1F99
secondary
#B4C054
accent
#E93FD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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