#2D2491#2D2491

#2D2491 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.170 H 277.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2D2491
RGBrgb(45, 36, 145)
HSLhsl(245, 60%, 35%)
HSVhsv(245, 75%, 57%)
CMYKcmyk(69%, 75.2%, 0%, 43.1%)
CIE-LABlab(23.21, 38.77, -58.30)
CIE-LCHlch(23.21, 70.01, 303.62°)
OKLaboklab(35.48% 0.0206 -0.1684)
OKLCHoklch(35.48% 0.17 277)
XYZxyz(6.8222, 3.8634, 27.1688)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2491 #889124
analogous
#245191 #2D2491 #632491
triadic
#2D2491 #912D24 #24912D
tetradic
#2D2491 #912451 #889124 #249163
square
#2D2491 #912451 #889124 #249163
split-complementary
#2D2491 #916324 #519124
monochromatic
#0F0C2F #1E1860 #2D2491 #3C30C2 #6459D6

Accessibility & contrast

On white

11.85
#2D2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2491
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2491#FFFFFF#000000##FFFFFF
##2D24911.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2491;
/* rgb */ color: rgb(45, 36, 145);
/* oklch */ color: oklch(35.5% 0.170 277.0);
Tailwind
colors: {
  custom: {
    50: '#7560b2',
    500: '#2d2491',
    950: '#000000',
  },
}
SCSS
$custom: #2d2491;
$custom-light: #7560b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2491",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 244.954,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35479,
    "c": 0.1697,
    "h": 277
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#2D2491
secondary
#B2BA56
accent
#E344D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D2491

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

Preview Lab → · Contrast checker → · Palette generator →

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