#2C28B1#2C28B1

#2C28B1 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.4% C 0.205 H 272.9°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2C28B1
RGBrgb(44, 40, 177)
HSLhsl(242, 63%, 43%)
HSVhsv(242, 77%, 69%)
CMYKcmyk(75.1%, 77.4%, 0%, 30.6%)
CIE-LABlab(27.37, 46.96, -70.91)
CIE-LCHlch(27.37, 85.05, 303.52°)
OKLaboklab(39.42% 0.0105 -0.2052)
OKLCHoklch(39.42% 0.205 272.9)
XYZxyz(9.7307, 5.2264, 42.0824)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C28B1 #ADB128
analogous
#2868B1 #2C28B1 #7128B1
triadic
#2C28B1 #B12C28 #28B12C
tetradic
#2C28B1 #B12868 #ADB128 #28B171
square
#2C28B1 #B12868 #ADB128 #28B171
split-complementary
#2C28B1 #B17128 #68B128
monochromatic
#13114D #201D7F #2C28B1 #4642D4 #7774E0

Accessibility & contrast

On white

10.27
#2C28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C28B1
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C28B1#FFFFFF#000000##FFFFFF
##2C28B11.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#003AAF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c28b1;
/* rgb */ color: rgb(44, 40, 177);
/* oklch */ color: oklch(39.4% 0.205 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c65ca',
    500: '#2c28b1',
    950: '#000000',
  },
}
SCSS
$custom: #2c28b1;
$custom-light: #7c65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c28b1",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 241.752,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.20546,
    "h": 272.9
  },
  "luminance": 0.05227
}

Semantic roles & 50–950 ramp

primary
#2C28B1
secondary
#C4C76E
accent
#E642E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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