#2D1C9F#2D1C9F

#2D1C9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.194 H 276.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2D1C9F
RGBrgb(45, 28, 159)
HSLhsl(248, 70%, 37%)
HSVhsv(248, 82%, 62%)
CMYKcmyk(71.7%, 82.4%, 0%, 37.6%)
CIE-LABlab(23.31, 47.42, -66.76)
CIE-LCHlch(23.31, 81.88, 305.39°)
OKLaboklab(36% 0.0211 -0.1929)
OKLCHoklch(36% 0.194 276.2)
XYZxyz(7.7534, 3.8909, 33.1366)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C9F #8E9F1C
analogous
#1C4D9F #2D1C9F #6F1C9F
triadic
#2D1C9F #9F2D1C #1C9F2D
tetradic
#2D1C9F #9F1C4D #8E9F1C #1C9F6F
square
#2D1C9F #9F1C4D #8E9F1C #1C9F6F
split-complementary
#2D1C9F #9F6F1C #4D9F1C
monochromatic
#100A37 #1E136B #2D1C9F #3C25D3 #6754E1

Accessibility & contrast

On white

11.81
#2D1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D1C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C9F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C9F#FFFFFF#000000##FFFFFF
##2D1C9F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d1c9f;
/* rgb */ color: rgb(45, 28, 159);
/* oklch */ color: oklch(36.0% 0.194 276.2);
Tailwind
colors: {
  custom: {
    50: '#795dbd',
    500: '#2d1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c9f;
$custom-light: #795dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c9f",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 247.786,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36002,
    "c": 0.1941,
    "h": 276.2
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#2D1C9F
secondary
#B5C453
accent
#ED3BD6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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