#2D2996#2D2996

#2D2996 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.171 H 275.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2D2996
RGBrgb(45, 41, 150)
HSLhsl(242, 57%, 37%)
HSVhsv(242, 73%, 59%)
CMYKcmyk(70%, 72.7%, 0%, 41.2%)
CIE-LABlab(24.78, 37.51, -58.81)
CIE-LCHlch(24.78, 69.75, 302.53°)
OKLaboklab(36.75% 0.0166 -0.1699)
OKLCHoklch(36.75% 0.171 275.6)
XYZxyz(7.3783, 4.3451, 29.2981)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2996 #929629
analogous
#295B96 #2D2996 #642996
triadic
#2D2996 #962D29 #29962D
tetradic
#2D2996 #96295B #929629 #299664
square
#2D2996 #96295B #929629 #299664
split-complementary
#2D2996 #966429 #5B9629
monochromatic
#100F36 #1F1C66 #2D2996 #3B36C6 #6965D5

Accessibility & contrast

On white

11.23
#2D2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2996
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2996#FFFFFF#000000##FFFFFF
##2D29961.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2996;
/* rgb */ color: rgb(45, 41, 150);
/* oklch */ color: oklch(36.7% 0.171 275.6);
Tailwind
colors: {
  custom: {
    50: '#7664b6',
    500: '#2d2996',
    950: '#000000',
  },
}
SCSS
$custom: #2d2996;
$custom-light: #7664b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2996",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 242.202,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36749,
    "c": 0.17074,
    "h": 275.6
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#2D2996
secondary
#B7BB60
accent
#E047DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2996

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

Preview Lab → · Contrast checker → · Palette generator →

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