#2C28BB#2C28BB

#2C28BB is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.5% C 0.217 H 272.2°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2C28BB
RGBrgb(44, 40, 187)
HSLhsl(242, 65%, 45%)
HSVhsv(242, 79%, 73%)
CMYKcmyk(76.5%, 78.6%, 0%, 26.7%)
CIE-LABlab(28.48, 50.16, -75.01)
CIE-LCHlch(28.48, 90.24, 303.77°)
OKLaboklab(40.52% 0.0084 -0.2171)
OKLCHoklch(40.52% 0.217 272.2)
XYZxyz(10.7641, 5.6398, 47.5254)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28BB #B7BB28
analogous
#286DBB #2C28BB #7628BB
triadic
#2C28BB #BB2C28 #28BB2C
tetradic
#2C28BB #BB286D #B7BB28 #28BB76
square
#2C28BB #BB286D #B7BB28 #28BB76
split-complementary
#2C28BB #BB7628 #6DBB28
monochromatic
#141256 #201D89 #2C28BB #4C48D8 #7E7BE3

Accessibility & contrast

On white

9.87
#2C28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2C28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28BB
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28BB#FFFFFF#000000##FFFFFF
##2C28BB1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABF
Deuteranopia (green-blind)
#003CB8
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c28bb;
/* rgb */ color: rgb(44, 40, 187);
/* oklch */ color: oklch(40.5% 0.217 272.2);
Tailwind
colors: {
  custom: {
    50: '#7e65d1',
    500: '#2c28bb',
    950: '#000000',
  },
}
SCSS
$custom: #2c28bb;
$custom-light: #7e65d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28bb",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 241.633,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40524,
    "c": 0.21727,
    "h": 272.2
  },
  "luminance": 0.05641
}

Semantic roles & 50–950 ramp

primary
#2C28BB
secondary
#C8CB74
accent
#E840E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2C28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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