#2D2799#2D2799

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

Color values

HEX#2D2799
RGBrgb(45, 39, 153)
HSLhsl(243, 59%, 38%)
HSVhsv(243, 75%, 60%)
CMYKcmyk(70.6%, 74.5%, 0%, 40%)
CIE-LABlab(24.66, 39.71, -60.84)
CIE-LCHlch(24.66, 72.65, 303.13°)
OKLaboklab(36.76% 0.0172 -0.1759)
OKLCHoklch(36.76% 0.177 275.6)
XYZxyz(7.5556, 4.3081, 30.5642)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2799 #939927
analogous
#275A99 #2D2799 #662799
triadic
#2D2799 #992D27 #27992D
tetradic
#2D2799 #99275A #939927 #279966
square
#2D2799 #99275A #939927 #279966
split-complementary
#2D2799 #996627 #5A9927
monochromatic
#100E37 #1F1B68 #2D2799 #3B33CA #6963D7

Accessibility & contrast

On white

11.28
#2D2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2799
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2799#FFFFFF#000000##FFFFFF
##2D27991.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2799;
/* rgb */ color: rgb(45, 39, 153);
/* oklch */ color: oklch(36.8% 0.177 275.6);
Tailwind
colors: {
  custom: {
    50: '#7663b8',
    500: '#2d2799',
    950: '#000000',
  },
}
SCSS
$custom: #2d2799;
$custom-light: #7663b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2799",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 243.158,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36759,
    "c": 0.17671,
    "h": 275.6
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#2D2799
secondary
#B8BD5F
accent
#E345DA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D2799

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

Preview Lab → · Contrast checker → · Palette generator →

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