#2D1C99#2D1C99

#2D1C99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.187 H 277.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2D1C99
RGBrgb(45, 28, 153)
HSLhsl(248, 69%, 35%)
HSVhsv(248, 82%, 60%)
CMYKcmyk(70.6%, 81.7%, 0%, 40%)
CIE-LABlab(22.61, 45.58, -64.23)
CIE-LCHlch(22.61, 78.76, 305.36°)
OKLaboklab(35.32% 0.0228 -0.1856)
OKLCHoklch(35.32% 0.187 277)
XYZxyz(7.2453, 3.6876, 30.4608)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C99 #88991C
analogous
#1C4999 #2D1C99 #6B1C99
triadic
#2D1C99 #992D1C #1C992D
tetradic
#2D1C99 #991C49 #88991C #1C996B
square
#2D1C99 #991C49 #88991C #1C996B
split-complementary
#2D1C99 #996B1C #49991C
monochromatic
#0F0932 #1E1365 #2D1C99 #3C25CD #6450DF

Accessibility & contrast

On white

12.09
#2D1C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C99
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C99#FFFFFF#000000##FFFFFF
##2D1C991.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1c99;
/* rgb */ color: rgb(45, 28, 153);
/* oklch */ color: oklch(35.3% 0.187 277.0);
Tailwind
colors: {
  custom: {
    50: '#775cb8',
    500: '#2d1c99',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c99;
$custom-light: #775cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c99",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 248.16,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35316,
    "c": 0.18702,
    "h": 277
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1C99

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

Preview Lab → · Contrast checker → · Palette generator →

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