#2C28AC#2C28AC

#2C28AC is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.9% C 0.199 H 273.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2C28AC
RGBrgb(44, 40, 172)
HSLhsl(242, 62%, 42%)
HSVhsv(242, 77%, 67%)
CMYKcmyk(74.4%, 76.7%, 0%, 32.5%)
CIE-LABlab(26.82, 45.34, -68.82)
CIE-LCHlch(26.82, 82.41, 303.38°)
OKLaboklab(38.87% 0.0116 -0.1991)
OKLCHoklch(38.87% 0.199 273.3)
XYZxyz(9.2414, 5.0307, 39.5057)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28AC #A8AC28
analogous
#2866AC #2C28AC #6E28AC
triadic
#2C28AC #AC2C28 #28AC2C
tetradic
#2C28AC #AC2866 #A8AC28 #28AC6E
square
#2C28AC #AC2866 #A8AC28 #28AC6E
split-complementary
#2C28AC #AC6E28 #66AC28
monochromatic
#131149 #1F1C7A #2C28AC #433FD2 #7471DE

Accessibility & contrast

On white

10.47
#2C28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2C28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28AC
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28AC#FFFFFF#000000##FFFFFF
##2C28AC1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#0039AA
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c28ac;
/* rgb */ color: rgb(44, 40, 172);
/* oklch */ color: oklch(38.9% 0.199 273.3);
Tailwind
colors: {
  custom: {
    50: '#7a64c6',
    500: '#2c28ac',
    950: '#000000',
  },
}
SCSS
$custom: #2c28ac;
$custom-light: #7a64c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28ac",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 241.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38869,
    "c": 0.19946,
    "h": 273.3
  },
  "luminance": 0.05032
}

Semantic roles & 50–950 ramp

primary
#2C28AC
secondary
#C2C56B
accent
#E542E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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