#2D2995#2D2995

#2D2995 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.169 H 275.7°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2D2995
RGBrgb(45, 41, 149)
HSLhsl(242, 57%, 37%)
HSVhsv(242, 72%, 58%)
CMYKcmyk(69.8%, 72.5%, 0%, 41.6%)
CIE-LABlab(24.68, 37.17, -58.36)
CIE-LCHlch(24.68, 69.19, 302.50°)
OKLaboklab(36.65% 0.0167 -0.1686)
OKLCHoklch(36.65% 0.169 275.7)
XYZxyz(7.2982, 4.3130, 28.8758)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2995 #919529
analogous
#295B95 #2D2995 #632995
triadic
#2D2995 #952D29 #29952D
tetradic
#2D2995 #95295B #919529 #299563
square
#2D2995 #95295B #919529 #299563
split-complementary
#2D2995 #956329 #5B9529
monochromatic
#100F35 #1F1C65 #2D2995 #3B36C5 #6864D4

Accessibility & contrast

On white

11.27
#2D2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D2995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2995
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2995#FFFFFF#000000##FFFFFF
##2D29951.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2995;
/* rgb */ color: rgb(45, 41, 149);
/* oklch */ color: oklch(36.6% 0.169 275.7);
Tailwind
colors: {
  custom: {
    50: '#7564b5',
    500: '#2d2995',
    950: '#000000',
  },
}
SCSS
$custom: #2d2995;
$custom-light: #7564b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2995",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 242.222,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36647,
    "c": 0.16946,
    "h": 275.7
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#2D2995
secondary
#B7BA60
accent
#E048DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2995

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

Preview Lab → · Contrast checker → · Palette generator →

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