#2D1F9B#2D1F9B

#2D1F9B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.187 H 276.4°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2D1F9B
RGBrgb(45, 31, 155)
HSLhsl(247, 67%, 36%)
HSVhsv(247, 80%, 61%)
CMYKcmyk(71%, 80%, 0%, 39.2%)
CIE-LABlab(23.35, 44.72, -64.24)
CIE-LCHlch(23.35, 78.27, 304.84°)
OKLaboklab(35.9% 0.0209 -0.1857)
OKLCHoklch(35.9% 0.187 276.4)
XYZxyz(7.4866, 3.9037, 31.3629)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F9B #8D9B1F
analogous
#1F4F9B #2D1F9B #6B1F9B
triadic
#2D1F9B #9B2D1F #1F9B2D
tetradic
#2D1F9B #9B1F4F #8D9B1F #1F9B6B
square
#2D1F9B #9B1F4F #8D9B1F #1F9B6B
split-complementary
#2D1F9B #9B6B1F #4F9B1F
monochromatic
#0F0B35 #1E1568 #2D1F9B #3C29CE #6657DD

Accessibility & contrast

On white

11.79
#2D1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F9B
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F9B#FFFFFF#000000##FFFFFF
##2D1F9B1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d1f9b;
/* rgb */ color: rgb(45, 31, 155);
/* oklch */ color: oklch(35.9% 0.187 276.4);
Tailwind
colors: {
  custom: {
    50: '#785eba',
    500: '#2d1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f9b;
$custom-light: #785eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f9b",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 246.774,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35898,
    "c": 0.18685,
    "h": 276.4
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#2D1F9B
secondary
#B5C155
accent
#EA3ED6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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