#3A28C3#3A28C3

#3A28C3 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.3% C 0.223 H 276.2°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#3A28C3
RGBrgb(58, 40, 195)
HSLhsl(247, 66%, 46%)
HSVhsv(247, 79%, 76%)
CMYKcmyk(70.3%, 79.5%, 0%, 23.5%)
CIE-LABlab(30.29, 53.71, -76.71)
CIE-LCHlch(30.29, 93.64, 305.00°)
OKLaboklab(42.29% 0.0242 -0.2217)
OKLCHoklch(42.29% 0.223 276.2)
XYZxyz(12.3508, 6.3561, 52.1951)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A28C3 #B1C328
analogous
#2863C3 #3A28C3 #8728C3
triadic
#3A28C3 #C33A28 #28C33A
tetradic
#3A28C3 #C32863 #B1C328 #28C387
square
#3A28C3 #C32863 #B1C328 #28C387
split-complementary
#3A28C3 #C38728 #63C328
monochromatic
#1C135D #2B1E90 #3A28C3 #5E4EDB #8C80E5

Accessibility & contrast

On white

9.25
#3A28C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3A28C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A28C3
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A28C3#FFFFFF#000000##FFFFFF
##3A28C31.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC7
Deuteranopia (green-blind)
#0040C0
Tritanopia (blue-blind)
#005876
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a28c3;
/* rgb */ color: rgb(58, 40, 195);
/* oklch */ color: oklch(42.3% 0.223 276.2);
Tailwind
colors: {
  custom: {
    50: '#8566d7',
    500: '#3a28c3',
    950: '#000000',
  },
}
SCSS
$custom: #3a28c3;
$custom-light: #8566d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a28c3",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 195
  },
  "hsl": {
    "h": 246.968,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42288,
    "c": 0.22305,
    "h": 276.2
  },
  "luminance": 0.06357
}

Semantic roles & 50–950 ramp

primary
#3A28C3
secondary
#C4CE79
accent
#E93FD5
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #3A28C3

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

Preview Lab → · Contrast checker → · Palette generator →

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