#2D2795#2D2795

#2D2795 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.172 H 276.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2D2795
RGBrgb(45, 39, 149)
HSLhsl(243, 59%, 37%)
HSVhsv(243, 74%, 58%)
CMYKcmyk(69.8%, 73.8%, 0%, 41.6%)
CIE-LABlab(24.25, 38.36, -59.06)
CIE-LCHlch(24.25, 70.43, 303.00°)
OKLaboklab(36.34% 0.018 -0.1707)
OKLCHoklch(36.34% 0.172 276)
XYZxyz(7.2307, 4.1782, 28.8534)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2795 #8F9527
analogous
#275895 #2D2795 #642795
triadic
#2D2795 #952D27 #27952D
tetradic
#2D2795 #952758 #8F9527 #279564
square
#2D2795 #952758 #8F9527 #279564
split-complementary
#2D2795 #956427 #589527
monochromatic
#100E34 #1E1A64 #2D2795 #3C34C6 #6761D6

Accessibility & contrast

On white

11.44
#2D2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2795
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2795#FFFFFF#000000##FFFFFF
##2D27951.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2795;
/* rgb */ color: rgb(45, 39, 149);
/* oklch */ color: oklch(36.3% 0.172 276.0);
Tailwind
colors: {
  custom: {
    50: '#7563b5',
    500: '#2d2795',
    950: '#000000',
  },
}
SCSS
$custom: #2d2795;
$custom-light: #7563b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2795",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 243.273,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36341,
    "c": 0.17162,
    "h": 276
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#2D2795
secondary
#B6BB5D
accent
#E246D9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2795

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

Preview Lab → · Contrast checker → · Palette generator →

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