#2C28B2#2C28B2

#2C28B2 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.5% C 0.207 H 272.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2C28B2
RGBrgb(44, 40, 178)
HSLhsl(242, 63%, 43%)
HSVhsv(242, 78%, 70%)
CMYKcmyk(75.3%, 77.5%, 0%, 30.2%)
CIE-LABlab(27.48, 47.29, -71.32)
CIE-LCHlch(27.48, 85.57, 303.54°)
OKLaboklab(39.53% 0.0103 -0.2064)
OKLCHoklch(39.53% 0.207 272.9)
XYZxyz(9.8307, 5.2664, 42.6093)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28B2 #AEB228
analogous
#2869B2 #2C28B2 #7128B2
triadic
#2C28B2 #B22C28 #28B22C
tetradic
#2C28B2 #B22869 #AEB228 #28B271
square
#2C28B2 #B22869 #AEB228 #28B271
split-complementary
#2C28B2 #B27128 #69B228
monochromatic
#13124E #201D80 #2C28B2 #4743D5 #7875E0

Accessibility & contrast

On white

10.23
#2C28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2C28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C28B2
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28B2#FFFFFF#000000##FFFFFF
##2C28B21.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003AB0
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c28b2;
/* rgb */ color: rgb(44, 40, 178);
/* oklch */ color: oklch(39.5% 0.207 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c65ca',
    500: '#2c28b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c28b2;
$custom-light: #7c65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28b2",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 241.739,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39526,
    "c": 0.20666,
    "h": 272.9
  },
  "luminance": 0.05267
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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