#2C28B7#2C28B7

#2C28B7 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.213 H 272.5°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2C28B7
RGBrgb(44, 40, 183)
HSLhsl(242, 64%, 44%)
HSVhsv(242, 78%, 72%)
CMYKcmyk(76%, 78.1%, 0%, 28.2%)
CIE-LABlab(28.04, 48.89, -73.38)
CIE-LCHlch(28.04, 88.18, 303.67°)
OKLaboklab(40.08% 0.0093 -0.2124)
OKLCHoklch(40.08% 0.213 272.5)
XYZxyz(10.3419, 5.4709, 45.3015)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28B7 #B3B728
analogous
#286BB7 #2C28B7 #7328B7
triadic
#2C28B7 #B72C28 #28B72C
tetradic
#2C28B7 #B7286B #B3B728 #28B773
square
#2C28B7 #B7286B #B3B728 #28B773
split-complementary
#2C28B7 #B77328 #6BB728
monochromatic
#141253 #201D85 #2C28B7 #4A46D6 #7B78E1

Accessibility & contrast

On white

10.03
#2C28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2C28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28B7
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28B7#FFFFFF#000000##FFFFFF
##2C28B71.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BB
Deuteranopia (green-blind)
#003BB5
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c28b7;
/* rgb */ color: rgb(44, 40, 183);
/* oklch */ color: oklch(40.1% 0.213 272.5);
Tailwind
colors: {
  custom: {
    50: '#7d65ce',
    500: '#2c28b7',
    950: '#000000',
  },
}
SCSS
$custom: #2c28b7;
$custom-light: #7d65ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28b7",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 241.678,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40079,
    "c": 0.21258,
    "h": 272.5
  },
  "luminance": 0.05472
}

Semantic roles & 50–950 ramp

primary
#2C28B7
secondary
#C7C972
accent
#E741E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2C28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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