#2D1C9B#2D1C9B

#2D1C9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.189 H 276.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2D1C9B
RGBrgb(45, 28, 155)
HSLhsl(248, 69%, 36%)
HSVhsv(248, 82%, 61%)
CMYKcmyk(71%, 81.9%, 0%, 39.2%)
CIE-LABlab(22.84, 46.19, -65.08)
CIE-LCHlch(22.84, 79.81, 305.37°)
OKLaboklab(35.54% 0.0223 -0.1881)
OKLCHoklch(35.54% 0.189 276.7)
XYZxyz(7.4119, 3.7543, 31.3380)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C9B #8A9B1C
analogous
#1C4B9B #2D1C9B #6C1C9B
triadic
#2D1C9B #9B2D1C #1C9B2D
tetradic
#2D1C9B #9B1C4B #8A9B1C #1C9B6C
square
#2D1C9B #9B1C4B #8A9B1C #1C9B6C
split-complementary
#2D1C9B #9B6C1C #4B9B1C
monochromatic
#0F0933 #1E1367 #2D1C9B #3C25CF #6552E0

Accessibility & contrast

On white

11.99
#2D1C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D1C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C9B
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C9B#FFFFFF#000000##FFFFFF
##2D1C9B1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1c9b;
/* rgb */ color: rgb(45, 28, 155);
/* oklch */ color: oklch(35.5% 0.189 276.7);
Tailwind
colors: {
  custom: {
    50: '#785dba',
    500: '#2d1c9b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c9b;
$custom-light: #785dba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c9b",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 248.031,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35544,
    "c": 0.18939,
    "h": 276.7
  },
  "luminance": 0.03755
}

Semantic roles & 50–950 ramp

primary
#2D1C9B
secondary
#B3C350
accent
#EC3CD5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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