#2C28B3#2C28B3

#2C28B3 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.6% C 0.208 H 272.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2C28B3
RGBrgb(44, 40, 179)
HSLhsl(242, 63%, 43%)
HSVhsv(242, 78%, 70%)
CMYKcmyk(75.4%, 77.7%, 0%, 29.8%)
CIE-LABlab(27.59, 47.61, -71.74)
CIE-LCHlch(27.59, 86.10, 303.57°)
OKLaboklab(39.64% 0.0101 -0.2076)
OKLCHoklch(39.64% 0.208 272.8)
XYZxyz(9.9315, 5.3067, 43.1400)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28B3 #AFB328
analogous
#2869B3 #2C28B3 #7228B3
triadic
#2C28B3 #B32C28 #28B32C
tetradic
#2C28B3 #B32869 #AFB328 #28B372
square
#2C28B3 #B32869 #AFB328 #28B372
split-complementary
#2C28B3 #B37228 #69B328
monochromatic
#13124F #201D81 #2C28B3 #4743D5 #7875E0

Accessibility & contrast

On white

10.19
#2C28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2C28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28B3
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28B3#FFFFFF#000000##FFFFFF
##2C28B31.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B7
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c28b3;
/* rgb */ color: rgb(44, 40, 179);
/* oklch */ color: oklch(39.6% 0.208 272.8);
Tailwind
colors: {
  custom: {
    50: '#7c65cb',
    500: '#2c28b3',
    950: '#000000',
  },
}
SCSS
$custom: #2c28b3;
$custom-light: #7c65cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28b3",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 241.727,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39636,
    "c": 0.20785,
    "h": 272.8
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

primary
#2C28B3
secondary
#C5C86F
accent
#E641E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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