#2D1B8B#2D1B8B

#2D1B8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.171 H 279.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2D1B8B
RGBrgb(45, 27, 139)
HSLhsl(250, 67%, 33%)
HSVhsv(250, 81%, 55%)
CMYKcmyk(67.6%, 80.6%, 0%, 45.5%)
CIE-LABlab(20.85, 41.72, -58.47)
CIE-LCHlch(20.85, 71.83, 305.51°)
OKLaboklab(33.62% 0.0274 -0.1688)
OKLCHoklch(33.62% 0.171 279.2)
XYZxyz(6.1328, 3.2053, 24.7166)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B8B #798B1B
analogous
#1B418B #2D1B8B #651B8B
triadic
#2D1B8B #8B2D1B #1B8B2D
tetradic
#2D1B8B #8B1B41 #798B1B #1B8B65
square
#2D1B8B #8B1B41 #798B1B #1B8B65
split-complementary
#2D1B8B #8B651B #418B1B
monochromatic
#0C0725 #1C1158 #2D1B8B #3E25BE #5D45DB

Accessibility & contrast

On white

12.80
#2D1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B8B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B8B#FFFFFF#000000##FFFFFF
##2D1B8B1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1b8b;
/* rgb */ color: rgb(45, 27, 139);
/* oklch */ color: oklch(33.6% 0.171 279.2);
Tailwind
colors: {
  custom: {
    50: '#745bae',
    500: '#2d1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b8b;
$custom-light: #745bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b8b",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 249.643,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33623,
    "c": 0.17106,
    "h": 279.2
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#2D1B8B
secondary
#A9BC45
accent
#EA3DCF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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