#2C28A9#2C28A9

#2C28A9 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.196 H 273.6°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2C28A9
RGBrgb(44, 40, 169)
HSLhsl(242, 62%, 41%)
HSVhsv(242, 76%, 66%)
CMYKcmyk(74%, 76.3%, 0%, 33.7%)
CIE-LABlab(26.50, 44.36, -67.55)
CIE-LCHlch(26.50, 80.81, 303.29°)
OKLaboklab(38.54% 0.0122 -0.1954)
OKLCHoklch(38.54% 0.196 273.6)
XYZxyz(8.9565, 4.9167, 38.0054)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28A9 #A5A928
analogous
#2865A9 #2C28A9 #6C28A9
triadic
#2C28A9 #A92C28 #28A92C
tetradic
#2C28A9 #A92865 #A5A928 #28A96C
square
#2C28A9 #A92865 #A5A928 #28A96C
split-complementary
#2C28A9 #A96C28 #65A928
monochromatic
#121146 #1F1C78 #2C28A9 #423DD1 #726FDD

Accessibility & contrast

On white

10.59
#2C28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2C28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28A9
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28A9#FFFFFF#000000##FFFFFF
##2C28A91.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0038A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c28a9;
/* rgb */ color: rgb(44, 40, 169);
/* oklch */ color: oklch(38.5% 0.196 273.6);
Tailwind
colors: {
  custom: {
    50: '#7a64c4',
    500: '#2c28a9',
    950: '#000000',
  },
}
SCSS
$custom: #2c28a9;
$custom-light: #7a64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28a9",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 241.86,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38543,
    "c": 0.19581,
    "h": 273.6
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#2C28A9
secondary
#C1C469
accent
#E543E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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