#2C28C5#2C28C5

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

Color values

HEX#2C28C5
RGBrgb(44, 40, 197)
HSLhsl(242, 66%, 46%)
HSVhsv(242, 80%, 77%)
CMYKcmyk(77.7%, 79.7%, 0%, 22.7%)
CIE-LABlab(29.62, 53.30, -79.03)
CIE-LCHlch(29.62, 95.32, 304.00°)
OKLaboklab(41.65% 0.0063 -0.2287)
OKLCHoklch(41.65% 0.229 271.6)
XYZxyz(11.8721, 6.0830, 53.3609)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28C5 #C1C528
analogous
#2873C5 #2C28C5 #7B28C5
triadic
#2C28C5 #C52C28 #28C52C
tetradic
#2C28C5 #C52873 #C1C528 #28C57B
square
#2C28C5 #C52873 #C1C528 #28C57B
split-complementary
#2C28C5 #C57B28 #73C528
monochromatic
#15135F #211E92 #2C28C5 #534FDB #8482E6

Accessibility & contrast

On white

9.47
#2C28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C28C5
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28C5#FFFFFF#000000##FFFFFF
##2C28C51.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.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: #2c28c5;
/* rgb */ color: rgb(44, 40, 197);
/* oklch */ color: oklch(41.6% 0.229 271.6);
Tailwind
colors: {
  custom: {
    50: '#8066d8',
    500: '#2c28c5',
    950: '#000000',
  },
}
SCSS
$custom: #2c28c5;
$custom-light: #8066d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28c5",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 241.529,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41648,
    "c": 0.22883,
    "h": 271.6
  },
  "luminance": 0.06084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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