#3A28B1#3A28B1

#3A28B1 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.202 H 278.2°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#3A28B1
RGBrgb(58, 40, 177)
HSLhsl(248, 63%, 43%)
HSVhsv(248, 77%, 69%)
CMYKcmyk(67.2%, 77.4%, 0%, 30.6%)
CIE-LABlab(28.36, 48.25, -69.25)
CIE-LCHlch(28.36, 84.40, 304.87°)
OKLaboklab(40.36% 0.0289 -0.2)
OKLCHoklch(40.36% 0.202 278.2)
XYZxyz(10.4370, 5.5906, 42.1155)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A28B1 #9FB128
analogous
#285BB1 #3A28B1 #7E28B1
triadic
#3A28B1 #B13A28 #28B13A
tetradic
#3A28B1 #B1285B #9FB128 #28B17E
square
#3A28B1 #B1285B #9FB128 #28B17E
split-complementary
#3A28B1 #B17E28 #5BB128
monochromatic
#19114D #2A1D7F #3A28B1 #5542D4 #8274E0

Accessibility & contrast

On white

9.91
#3A28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3A28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A28B1
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A28B1#FFFFFF#000000##FFFFFF
##3A28B11.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a28b1;
/* rgb */ color: rgb(58, 40, 177);
/* oklch */ color: oklch(40.4% 0.202 278.2);
Tailwind
colors: {
  custom: {
    50: '#8165ca',
    500: '#3a28b1',
    950: '#000000',
  },
}
SCSS
$custom: #3a28b1;
$custom-light: #8165ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a28b1",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 247.883,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40363,
    "c": 0.2021,
    "h": 278.2
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#3A28B1
secondary
#BBC76E
accent
#E642D1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A28B1

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

Preview Lab → · Contrast checker → · Palette generator →

#3A28B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva