#2D28C5#2D28C5

#2D28C5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.7% C 0.229 H 271.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2D28C5
RGBrgb(45, 40, 197)
HSLhsl(242, 66%, 46%)
HSVhsv(242, 80%, 77%)
CMYKcmyk(77.2%, 79.7%, 0%, 22.7%)
CIE-LABlab(29.68, 53.36, -78.93)
CIE-LCHlch(29.68, 95.28, 304.06°)
OKLaboklab(41.7% 0.0074 -0.2284)
OKLCHoklch(41.7% 0.229 271.9)
XYZxyz(11.9156, 6.1054, 53.3630)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28C5 #C0C528
analogous
#2872C5 #2D28C5 #7C28C5
triadic
#2D28C5 #C52D28 #28C52D
tetradic
#2D28C5 #C52872 #C0C528 #28C57C
square
#2D28C5 #C52872 #C0C528 #28C57C
split-complementary
#2D28C5 #C57C28 #72C528
monochromatic
#16135F #211E92 #2D28C5 #534FDB #8582E6

Accessibility & contrast

On white

9.45
#2D28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2D28C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28C5
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28C5#FFFFFF#000000##FFFFFF
##2D28C51.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC9
Deuteranopia (green-blind)
#003EC2
Tritanopia (blue-blind)
#005977
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d28c5;
/* rgb */ color: rgb(45, 40, 197);
/* oklch */ color: oklch(41.7% 0.229 271.9);
Tailwind
colors: {
  custom: {
    50: '#8166d8',
    500: '#2d28c5',
    950: '#000000',
  },
}
SCSS
$custom: #2d28c5;
$custom-light: #8166d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28c5",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 241.911,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41702,
    "c": 0.22857,
    "h": 271.9
  },
  "luminance": 0.06107
}

Semantic roles & 50–950 ramp

primary
#2D28C5
secondary
#CCCE7A
accent
#E93FE4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2D28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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