#2D1B9B#2D1B9B

#2D1B9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.190 H 276.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1B9B
RGBrgb(45, 27, 155)
HSLhsl(248, 70%, 36%)
HSVhsv(248, 83%, 61%)
CMYKcmyk(71%, 82.6%, 0%, 39.2%)
CIE-LABlab(22.68, 46.67, -65.35)
CIE-LCHlch(22.68, 80.30, 305.53°)
OKLaboklab(35.43% 0.0227 -0.1888)
OKLCHoklch(35.43% 0.19 276.8)
XYZxyz(7.3886, 3.7076, 31.3303)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B9B #899B1B
analogous
#1B499B #2D1B9B #6D1B9B
triadic
#2D1B9B #9B2D1B #1B9B2D
tetradic
#2D1B9B #9B1B49 #899B1B #1B9B6D
square
#2D1B9B #9B1B49 #899B1B #1B9B6D
split-complementary
#2D1B9B #9B6D1B #499B1B
monochromatic
#0F0933 #1E1267 #2D1B9B #3C24CF #6450E0

Accessibility & contrast

On white

12.06
#2D1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D1B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B9B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B9B#FFFFFF#000000##FFFFFF
##2D1B9B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1b9b;
/* rgb */ color: rgb(45, 27, 155);
/* oklch */ color: oklch(35.4% 0.190 276.8);
Tailwind
colors: {
  custom: {
    50: '#785cba',
    500: '#2d1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b9b;
$custom-light: #785cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b9b",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 248.438,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35432,
    "c": 0.19019,
    "h": 276.8
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#2D1B9B
secondary
#B3C34F
accent
#ED3BD4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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