#2D1B8A#2D1B8A

#2D1B8A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.170 H 279.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2D1B8A
RGBrgb(45, 27, 138)
HSLhsl(250, 67%, 32%)
HSVhsv(250, 80%, 54%)
CMYKcmyk(67.4%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.74, 41.40, -58.03)
CIE-LCHlch(20.74, 71.29, 305.51°)
OKLaboklab(33.51% 0.0277 -0.1676)
OKLCHoklch(33.51% 0.17 279.4)
XYZxyz(6.0601, 3.1762, 24.3335)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B8A #788A1B
analogous
#1B408A #2D1B8A #651B8A
triadic
#2D1B8A #8A2D1B #1B8A2D
tetradic
#2D1B8A #8A1B40 #788A1B #1B8A65
square
#2D1B8A #8A1B40 #788A1B #1B8A65
split-complementary
#2D1B8A #8A651B #408A1B
monochromatic
#0C0724 #1C1157 #2D1B8A #3E25BD #5D45DB

Accessibility & contrast

On white

12.84
#2D1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B8A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B8A#FFFFFF#000000##FFFFFF
##2D1B8A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1b8a;
/* rgb */ color: rgb(45, 27, 138);
/* oklch */ color: oklch(33.5% 0.170 279.4);
Tailwind
colors: {
  custom: {
    50: '#745bad',
    500: '#2d1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b8a;
$custom-light: #745bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b8a",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 249.73,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33512,
    "c": 0.16984,
    "h": 279.4
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#2D1B8A
secondary
#A9BC45
accent
#EA3ECE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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