#2D1C9E#2D1C9E

#2D1C9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.193 H 276.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2D1C9E
RGBrgb(45, 28, 158)
HSLhsl(248, 70%, 36%)
HSVhsv(248, 82%, 62%)
CMYKcmyk(71.5%, 82.3%, 0%, 38%)
CIE-LABlab(23.19, 47.11, -66.34)
CIE-LCHlch(23.19, 81.37, 305.38°)
OKLaboklab(35.89% 0.0214 -0.1917)
OKLCHoklch(35.89% 0.193 276.4)
XYZxyz(7.6670, 3.8563, 32.6814)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C9E #8D9E1C
analogous
#1C4C9E #2D1C9E #6E1C9E
triadic
#2D1C9E #9E2D1C #1C9E2D
tetradic
#2D1C9E #9E1C4C #8D9E1C #1C9E6E
square
#2D1C9E #9E1C4C #8D9E1C #1C9E6E
split-complementary
#2D1C9E #9E6E1C #4C9E1C
monochromatic
#0F0A36 #1E136A #2D1C9E #3C25D2 #6654E1

Accessibility & contrast

On white

11.86
#2D1C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D1C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C9E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C9E#FFFFFF#000000##FFFFFF
##2D1C9E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1c9e;
/* rgb */ color: rgb(45, 28, 158);
/* oklch */ color: oklch(35.9% 0.193 276.4);
Tailwind
colors: {
  custom: {
    50: '#795dbc',
    500: '#2d1c9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c9e;
$custom-light: #795dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c9e",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 247.846,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35887,
    "c": 0.19293,
    "h": 276.4
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#2D1C9E
secondary
#B5C452
accent
#ED3BD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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