#2D2796#2D2796

#2D2796 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.173 H 275.9°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2D2796
RGBrgb(45, 39, 150)
HSLhsl(243, 59%, 37%)
HSVhsv(243, 74%, 59%)
CMYKcmyk(70%, 74%, 0%, 41.2%)
CIE-LABlab(24.35, 38.70, -59.51)
CIE-LCHlch(24.35, 70.98, 303.04°)
OKLaboklab(36.45% 0.0178 -0.172)
OKLCHoklch(36.45% 0.173 275.9)
XYZxyz(7.3109, 4.2103, 29.2756)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2796 #909627
analogous
#275996 #2D2796 #652796
triadic
#2D2796 #962D27 #27962D
tetradic
#2D2796 #962759 #909627 #279665
square
#2D2796 #962759 #909627 #279665
split-complementary
#2D2796 #966527 #599627
monochromatic
#100E35 #1E1A65 #2D2796 #3C34C7 #6861D6

Accessibility & contrast

On white

11.40
#2D2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2796
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2796#FFFFFF#000000##FFFFFF
##2D27961.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2796;
/* rgb */ color: rgb(45, 39, 150);
/* oklch */ color: oklch(36.4% 0.173 275.9);
Tailwind
colors: {
  custom: {
    50: '#7663b6',
    500: '#2d2796',
    950: '#000000',
  },
}
SCSS
$custom: #2d2796;
$custom-light: #7663b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2796",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 243.243,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36445,
    "c": 0.1729,
    "h": 275.9
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2796

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

Preview Lab → · Contrast checker → · Palette generator →

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