#2E28C5#2E28C5

#2E28C5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.8% C 0.228 H 272.1°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2E28C5
RGBrgb(46, 40, 197)
HSLhsl(242, 66%, 46%)
HSVhsv(242, 80%, 77%)
CMYKcmyk(76.6%, 79.7%, 0%, 22.7%)
CIE-LABlab(29.73, 53.43, -78.84)
CIE-LCHlch(29.73, 95.23, 304.13°)
OKLaboklab(41.76% 0.0086 -0.2281)
OKLCHoklch(41.76% 0.228 272.1)
XYZxyz(11.9602, 6.1283, 53.3651)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28C5 #BFC528
analogous
#2871C5 #2E28C5 #7D28C5
triadic
#2E28C5 #C52E28 #28C52E
tetradic
#2E28C5 #C52871 #BFC528 #28C57D
square
#2E28C5 #C52871 #BFC528 #28C57D
split-complementary
#2E28C5 #C57D28 #71C528
monochromatic
#16135F #221E92 #2E28C5 #544FDB #8682E6

Accessibility & contrast

On white

9.43
#2E28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2E28C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E28C5
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28C5#FFFFFF#000000##FFFFFF
##2E28C51.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e28c5;
/* rgb */ color: rgb(46, 40, 197);
/* oklch */ color: oklch(41.8% 0.228 272.1);
Tailwind
colors: {
  custom: {
    50: '#8166d8',
    500: '#2e28c5',
    950: '#000000',
  },
}
SCSS
$custom: #2e28c5;
$custom-light: #8166d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28c5",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 242.293,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41758,
    "c": 0.22831,
    "h": 272.1
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#2E28C5
secondary
#CBCE7A
accent
#E93FE3
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2E28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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