#2B28C5#2B28C5

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

Color values

HEX#2B28C5
RGBrgb(43, 40, 197)
HSLhsl(241, 66%, 46%)
HSVhsv(241, 80%, 77%)
CMYKcmyk(78.2%, 79.7%, 0%, 22.7%)
CIE-LABlab(29.57, 53.23, -79.12)
CIE-LCHlch(29.57, 95.36, 303.93°)
OKLaboklab(41.6% 0.0051 -0.229)
OKLCHoklch(41.6% 0.229 271.3)
XYZxyz(11.8297, 6.0611, 53.3589)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B28C5 #C2C528
analogous
#2874C5 #2B28C5 #7928C5
triadic
#2B28C5 #C52B28 #28C52B
tetradic
#2B28C5 #C52874 #C2C528 #28C579
square
#2B28C5 #C52874 #C2C528 #28C579
split-complementary
#2B28C5 #C57928 #74C528
monochromatic
#15135F #201E92 #2B28C5 #524FDB #8482E6

Accessibility & contrast

On white

9.49
#2B28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2B28C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B28C5
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B28C5#FFFFFF#000000##FFFFFF
##2B28C51.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.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: #2b28c5;
/* rgb */ color: rgb(43, 40, 197);
/* oklch */ color: oklch(41.6% 0.229 271.3);
Tailwind
colors: {
  custom: {
    50: '#8066d8',
    500: '#2b28c5',
    950: '#000000',
  },
}
SCSS
$custom: #2b28c5;
$custom-light: #8066d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b28c5",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 241.146,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41595,
    "c": 0.22909,
    "h": 271.3
  },
  "luminance": 0.06062
}

Semantic roles & 50–950 ramp

primary
#2B28C5
secondary
#CDCE7A
accent
#E93FE6
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2B28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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