#2D1CAB#2D1CAB

#2D1CAB is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.4% C 0.208 H 274.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2D1CAB
RGBrgb(45, 28, 171)
HSLhsl(247, 72%, 39%)
HSVhsv(247, 84%, 67%)
CMYKcmyk(73.7%, 83.6%, 0%, 32.9%)
CIE-LABlab(24.73, 51.04, -71.68)
CIE-LCHlch(24.73, 88.00, 305.45°)
OKLaboklab(37.39% 0.0176 -0.2072)
OKLCHoklch(37.39% 0.208 274.9)
XYZxyz(8.8457, 4.3278, 38.8893)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1CAB #9AAB1C
analogous
#1C53AB #2D1CAB #751CAB
triadic
#2D1CAB #AB2D1C #1CAB2D
tetradic
#2D1CAB #AB1C53 #9AAB1C #1CAB75
square
#2D1CAB #AB1C53 #9AAB1C #1CAB75
split-complementary
#2D1CAB #AB751C #53AB1C
monochromatic
#110B42 #1F1376 #2D1CAB #3E28DC #6D5DE4

Accessibility & contrast

On white

11.26
#2D1CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D1CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1CAB
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1CAB#FFFFFF#000000##FFFFFF
##2D1CAB1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0034A9
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d1cab;
/* rgb */ color: rgb(45, 28, 171);
/* oklch */ color: oklch(37.4% 0.208 274.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ec5',
    500: '#2d1cab',
    950: '#000000',
  },
}
SCSS
$custom: #2d1cab;
$custom-light: #7c5ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1cab",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 247.133,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37393,
    "c": 0.20799,
    "h": 274.9
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

primary
#2D1CAB
secondary
#BBC95A
accent
#EF39D9
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D1CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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