#2C28C4#2C28C4

#2C28C4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.5% C 0.228 H 271.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2C28C4
RGBrgb(44, 40, 196)
HSLhsl(242, 66%, 46%)
HSVhsv(242, 80%, 77%)
CMYKcmyk(77.6%, 79.6%, 0%, 23.1%)
CIE-LABlab(29.51, 52.99, -78.63)
CIE-LCHlch(29.51, 94.82, 303.98°)
OKLaboklab(41.54% 0.0065 -0.2276)
OKLCHoklch(41.54% 0.228 271.6)
XYZxyz(11.7579, 6.0373, 52.7595)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28C4 #C0C428
analogous
#2872C4 #2C28C4 #7A28C4
triadic
#2C28C4 #C42C28 #28C42C
tetradic
#2C28C4 #C42872 #C0C428 #28C47A
square
#2C28C4 #C42872 #C0C428 #28C47A
split-complementary
#2C28C4 #C47A28 #72C428
monochromatic
#15135E #211E91 #2C28C4 #524EDB #8481E5

Accessibility & contrast

On white

9.51
#2C28C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C28C4
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28C4#FFFFFF#000000##FFFFFF
##2C28C41.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC8
Deuteranopia (green-blind)
#003EC1
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c28c4;
/* rgb */ color: rgb(44, 40, 196);
/* oklch */ color: oklch(41.5% 0.228 271.6);
Tailwind
colors: {
  custom: {
    50: '#8066d7',
    500: '#2c28c4',
    950: '#000000',
  },
}
SCSS
$custom: #2c28c4;
$custom-light: #8066d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28c4",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 241.538,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.41535,
    "c": 0.22768,
    "h": 271.6
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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