#2D1C9A#2D1C9A

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

Color values

HEX#2D1C9A
RGBrgb(45, 28, 154)
HSLhsl(248, 69%, 36%)
HSVhsv(248, 82%, 60%)
CMYKcmyk(70.8%, 81.8%, 0%, 39.6%)
CIE-LABlab(22.73, 45.89, -64.66)
CIE-LCHlch(22.73, 79.29, 305.36°)
OKLaboklab(35.43% 0.0225 -0.1868)
OKLCHoklch(35.43% 0.188 276.9)
XYZxyz(7.3283, 3.7208, 30.8976)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C9A #899A1C
analogous
#1C4A9A #2D1C9A #6C1C9A
triadic
#2D1C9A #9A2D1C #1C9A2D
tetradic
#2D1C9A #9A1C4A #899A1C #1C9A6C
square
#2D1C9A #9A1C4A #899A1C #1C9A6C
split-complementary
#2D1C9A #9A6C1C #4A9A1C
monochromatic
#0F0932 #1E1366 #2D1C9A #3C25CE #6451DF

Accessibility & contrast

On white

12.04
#2D1C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C9A
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C9A#FFFFFF#000000##FFFFFF
##2D1C9A1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1c9a;
/* rgb */ color: rgb(45, 28, 154);
/* oklch */ color: oklch(35.4% 0.188 276.9);
Tailwind
colors: {
  custom: {
    50: '#785cb9',
    500: '#2d1c9a',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c9a;
$custom-light: #785cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c9a",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 154
  },
  "hsl": {
    "h": 248.095,
    "s": 69.231,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3543,
    "c": 0.1882,
    "h": 276.9
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#2D1C9A
secondary
#B3C250
accent
#EC3CD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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