#2D1B9A#2D1B9A

#2D1B9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.189 H 277.0°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2D1B9A
RGBrgb(45, 27, 154)
HSLhsl(249, 70%, 35%)
HSVhsv(249, 82%, 60%)
CMYKcmyk(70.8%, 82.5%, 0%, 39.6%)
CIE-LABlab(22.56, 46.36, -64.93)
CIE-LCHlch(22.56, 79.78, 305.53°)
OKLaboklab(35.32% 0.023 -0.1876)
OKLCHoklch(35.32% 0.189 277)
XYZxyz(7.3050, 3.6742, 30.8898)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B9A #889A1B
analogous
#1B489A #2D1B9A #6C1B9A
triadic
#2D1B9A #9A2D1B #1B9A2D
tetradic
#2D1B9A #9A1B48 #889A1B #1B9A6C
square
#2D1B9A #9A1B48 #889A1B #1B9A6C
split-complementary
#2D1B9A #9A6C1B #489A1B
monochromatic
#0F0932 #1E1266 #2D1B9A #3C24CE #644FE0

Accessibility & contrast

On white

12.10
#2D1B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B9A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B9A#FFFFFF#000000##FFFFFF
##2D1B9A1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1b9a;
/* rgb */ color: rgb(45, 27, 154);
/* oklch */ color: oklch(35.3% 0.189 277.0);
Tailwind
colors: {
  custom: {
    50: '#785cb9',
    500: '#2d1b9a',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b9a;
$custom-light: #785cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b9a",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 248.504,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35317,
    "c": 0.18902,
    "h": 277
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#2D1B9A
secondary
#B2C34E
accent
#ED3BD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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