#2C28A5#2C28A5

#2C28A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.191 H 273.9°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2C28A5
RGBrgb(44, 40, 165)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 76%, 65%)
CMYKcmyk(73.3%, 75.8%, 0%, 35.3%)
CIE-LABlab(26.07, 43.04, -65.84)
CIE-LCHlch(26.07, 78.66, 303.17°)
OKLaboklab(38.11% 0.013 -0.1905)
OKLCHoklch(38.11% 0.191 273.9)
XYZxyz(8.5868, 4.7688, 36.0580)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28A5 #A1A528
analogous
#2862A5 #2C28A5 #6A28A5
triadic
#2C28A5 #A52C28 #28A52C
tetradic
#2C28A5 #A52862 #A1A528 #28A56A
square
#2C28A5 #A52862 #A1A528 #28A56A
split-complementary
#2C28A5 #A56A28 #62A528
monochromatic
#121042 #1F1C74 #2C28A5 #403BCF #706CDB

Accessibility & contrast

On white

10.75
#2C28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28A5
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28A5#FFFFFF#000000##FFFFFF
##2C28A51.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c28a5;
/* rgb */ color: rgb(44, 40, 165);
/* oklch */ color: oklch(38.1% 0.191 273.9);
Tailwind
colors: {
  custom: {
    50: '#7964c1',
    500: '#2c28a5',
    950: '#000000',
  },
}
SCSS
$custom: #2c28a5;
$custom-light: #7964c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28a5",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 241.92,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38111,
    "c": 0.19091,
    "h": 273.9
  },
  "luminance": 0.0477
}

Semantic roles & 50–950 ramp

primary
#2C28A5
secondary
#BFC267
accent
#E444DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2C28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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