#2D1F9A#2D1F9A

#2D1F9A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.186 H 276.6°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2D1F9A
RGBrgb(45, 31, 154)
HSLhsl(247, 66%, 36%)
HSVhsv(247, 80%, 60%)
CMYKcmyk(70.8%, 79.9%, 0%, 39.6%)
CIE-LABlab(23.24, 44.40, -63.81)
CIE-LCHlch(23.24, 77.74, 304.83°)
OKLaboklab(35.79% 0.0212 -0.1844)
OKLCHoklch(35.79% 0.186 276.6)
XYZxyz(7.4030, 3.8703, 30.9225)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F9A #8C9A1F
analogous
#1F4F9A #2D1F9A #6B1F9A
triadic
#2D1F9A #9A2D1F #1F9A2D
tetradic
#2D1F9A #9A1F4F #8C9A1F #1F9A6B
square
#2D1F9A #9A1F4F #8C9A1F #1F9A6B
split-complementary
#2D1F9A #9A6B1F #4F9A1F
monochromatic
#0F0A34 #1E1567 #2D1F9A #3C29CD #6656DD

Accessibility & contrast

On white

11.84
#2D1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1F9A
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F9A#FFFFFF#000000##FFFFFF
##2D1F9A1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1f9a;
/* rgb */ color: rgb(45, 31, 154);
/* oklch */ color: oklch(35.8% 0.186 276.6);
Tailwind
colors: {
  custom: {
    50: '#775eb9',
    500: '#2d1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f9a;
$custom-light: #775eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f9a",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 246.829,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35786,
    "c": 0.18564,
    "h": 276.6
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#2D1F9A
secondary
#B4C154
accent
#E93ED6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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