#2C28B5#2C28B5

#2C28B5 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.9% C 0.210 H 272.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2C28B5
RGBrgb(44, 40, 181)
HSLhsl(242, 64%, 43%)
HSVhsv(242, 78%, 71%)
CMYKcmyk(75.7%, 77.9%, 0%, 29%)
CIE-LABlab(27.81, 48.25, -72.56)
CIE-LCHlch(27.81, 87.14, 303.62°)
OKLaboklab(39.86% 0.0097 -0.21)
OKLCHoklch(39.86% 0.21 272.6)
XYZxyz(10.1352, 5.3882, 44.2130)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28B5 #B1B528
analogous
#286AB5 #2C28B5 #7228B5
triadic
#2C28B5 #B52C28 #28B52C
tetradic
#2C28B5 #B5286A #B1B528 #28B572
square
#2C28B5 #B5286A #B1B528 #28B572
split-complementary
#2C28B5 #B57228 #6AB528
monochromatic
#141251 #201D83 #2C28B5 #4944D6 #7A77E1

Accessibility & contrast

On white

10.11
#2C28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2C28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28B5
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28B5#FFFFFF#000000##FFFFFF
##2C28B51.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B9
Deuteranopia (green-blind)
#003BB3
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c28b5;
/* rgb */ color: rgb(44, 40, 181);
/* oklch */ color: oklch(39.9% 0.210 272.6);
Tailwind
colors: {
  custom: {
    50: '#7d65cd',
    500: '#2c28b5',
    950: '#000000',
  },
}
SCSS
$custom: #2c28b5;
$custom-light: #7d65cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28b5",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 241.702,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.39857,
    "c": 0.21021,
    "h": 272.6
  },
  "luminance": 0.05389
}

Semantic roles & 50–950 ramp

primary
#2C28B5
secondary
#C6C870
accent
#E741E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2C28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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