#2C28AE#2C28AE

#2C28AE is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.202 H 273.2°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2C28AE
RGBrgb(44, 40, 174)
HSLhsl(242, 63%, 42%)
HSVhsv(242, 77%, 68%)
CMYKcmyk(74.7%, 77%, 0%, 31.8%)
CIE-LABlab(27.04, 45.99, -69.66)
CIE-LCHlch(27.04, 83.47, 303.43°)
OKLaboklab(39.09% 0.0112 -0.2016)
OKLCHoklch(39.09% 0.202 273.2)
XYZxyz(9.4349, 5.1081, 40.5249)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28AE #AAAE28
analogous
#2867AE #2C28AE #6F28AE
triadic
#2C28AE #AE2C28 #28AE2C
tetradic
#2C28AE #AE2867 #AAAE28 #28AE6F
square
#2C28AE #AE2867 #AAAE28 #28AE6F
split-complementary
#2C28AE #AE6F28 #67AE28
monochromatic
#13114A #1F1D7C #2C28AE #4440D3 #7572DF

Accessibility & contrast

On white

10.39
#2C28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2C28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28AE
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28AE#FFFFFF#000000##FFFFFF
##2C28AE1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#0039AC
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c28ae;
/* rgb */ color: rgb(44, 40, 174);
/* oklch */ color: oklch(39.1% 0.202 273.2);
Tailwind
colors: {
  custom: {
    50: '#7b64c7',
    500: '#2c28ae',
    950: '#000000',
  },
}
SCSS
$custom: #2c28ae;
$custom-light: #7b64c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28ae",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 241.791,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39087,
    "c": 0.20187,
    "h": 273.2
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#2C28AE
secondary
#C3C66C
accent
#E642E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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