#2D1C8A#2D1C8A

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

Color values

HEX#2D1C8A
RGBrgb(45, 28, 138)
HSLhsl(249, 66%, 33%)
HSVhsv(249, 80%, 54%)
CMYKcmyk(67.4%, 79.7%, 0%, 45.9%)
CIE-LABlab(20.92, 40.89, -57.74)
CIE-LCHlch(20.92, 70.75, 305.30°)
OKLaboklab(33.64% 0.0271 -0.1667)
OKLCHoklch(33.64% 0.169 279.2)
XYZxyz(6.0834, 3.2229, 24.3413)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C8A #798A1C
analogous
#1C428A #2D1C8A #641C8A
triadic
#2D1C8A #8A2D1C #1C8A2D
tetradic
#2D1C8A #8A1C42 #798A1C #1C8A64
square
#2D1C8A #8A1C42 #798A1C #1C8A64
split-complementary
#2D1C8A #8A641C #428A1C
monochromatic
#0C0724 #1C1257 #2D1C8A #3E26BD #5D47DA

Accessibility & contrast

On white

12.77
#2D1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C8A
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C8A#FFFFFF#000000##FFFFFF
##2D1C8A1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1c8a;
/* rgb */ color: rgb(45, 28, 138);
/* oklch */ color: oklch(33.6% 0.169 279.2);
Tailwind
colors: {
  custom: {
    50: '#745bad',
    500: '#2d1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c8a;
$custom-light: #745bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c8a",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 249.273,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33637,
    "c": 0.16891,
    "h": 279.2
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#2D1C8A
secondary
#A9BB46
accent
#E93FCF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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