#3A28B4#3A28B4

#3A28B4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.7% C 0.206 H 277.9°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#3A28B4
RGBrgb(58, 40, 180)
HSLhsl(248, 64%, 43%)
HSVhsv(248, 78%, 71%)
CMYKcmyk(67.8%, 77.8%, 0%, 29.4%)
CIE-LABlab(28.67, 49.17, -70.51)
CIE-LCHlch(28.67, 85.96, 304.89°)
OKLaboklab(40.68% 0.0281 -0.2037)
OKLCHoklch(40.68% 0.206 277.9)
XYZxyz(10.7393, 5.7115, 43.7076)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A28B4 #A2B428
analogous
#285CB4 #3A28B4 #8028B4
triadic
#3A28B4 #B43A28 #28B43A
tetradic
#3A28B4 #B4285C #A2B428 #28B480
square
#3A28B4 #B4285C #A2B428 #28B480
split-complementary
#3A28B4 #B48028 #5CB428
monochromatic
#1A1250 #2A1D82 #3A28B4 #5744D5 #8476E1

Accessibility & contrast

On white

9.80
#3A28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3A28B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A28B4
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A28B4#FFFFFF#000000##FFFFFF
##3A28B41.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a28b4;
/* rgb */ color: rgb(58, 40, 180);
/* oklch */ color: oklch(40.7% 0.206 277.9);
Tailwind
colors: {
  custom: {
    50: '#8266cc',
    500: '#3a28b4',
    950: '#000000',
  },
}
SCSS
$custom: #3a28b4;
$custom-light: #8266cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a28b4",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 247.714,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.20564,
    "h": 277.9
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#3A28B4
secondary
#BDC870
accent
#E741D1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3A28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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