#2D2791#2D2791

#2D2791 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.166 H 276.5°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2D2791
RGBrgb(45, 39, 145)
HSLhsl(243, 58%, 36%)
HSVhsv(243, 73%, 57%)
CMYKcmyk(69%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.84, 37.01, -57.26)
CIE-LCHlch(23.84, 68.18, 302.87°)
OKLaboklab(35.93% 0.0187 -0.1654)
OKLCHoklch(35.93% 0.166 276.5)
XYZxyz(6.9169, 4.0526, 27.2003)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2791 #8B9127
analogous
#275691 #2D2791 #622791
triadic
#2D2791 #912D27 #27912D
tetradic
#2D2791 #912756 #8B9127 #279162
square
#2D2791 #912756 #8B9127 #279162
split-complementary
#2D2791 #916227 #569127
monochromatic
#0F0D31 #1E1A61 #2D2791 #3C34C1 #655FD4

Accessibility & contrast

On white

11.60
#2D2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2791
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2791#FFFFFF#000000##FFFFFF
##2D27911.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2791;
/* rgb */ color: rgb(45, 39, 145);
/* oklch */ color: oklch(35.9% 0.166 276.5);
Tailwind
colors: {
  custom: {
    50: '#7562b2',
    500: '#2d2791',
    950: '#000000',
  },
}
SCSS
$custom: #2d2791;
$custom-light: #7562b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2791",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 243.396,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35928,
    "c": 0.16649,
    "h": 276.5
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#2D2791
secondary
#B4B95B
accent
#E147D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D2791

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

Preview Lab → · Contrast checker → · Palette generator →

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