#3A28B2#3A28B2

#3A28B2 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.5% C 0.203 H 278.1°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#3A28B2
RGBrgb(58, 40, 178)
HSLhsl(248, 63%, 43%)
HSVhsv(248, 78%, 70%)
CMYKcmyk(67.4%, 77.5%, 0%, 30.2%)
CIE-LABlab(28.46, 48.55, -69.67)
CIE-LCHlch(28.46, 84.92, 304.87°)
OKLaboklab(40.47% 0.0286 -0.2013)
OKLCHoklch(40.47% 0.203 278.1)
XYZxyz(10.5370, 5.6306, 42.6424)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A28B2 #A0B228
analogous
#285BB2 #3A28B2 #7F28B2
triadic
#3A28B2 #B23A28 #28B23A
tetradic
#3A28B2 #B2285B #A0B228 #28B27F
square
#3A28B2 #B2285B #A0B228 #28B27F
split-complementary
#3A28B2 #B27F28 #5BB228
monochromatic
#19124E #2A1D80 #3A28B2 #5643D5 #8375E0

Accessibility & contrast

On white

9.88
#3A28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3A28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A28B2
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A28B2#FFFFFF#000000##FFFFFF
##3A28B21.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a28b2;
/* rgb */ color: rgb(58, 40, 178);
/* oklch */ color: oklch(40.5% 0.203 278.1);
Tailwind
colors: {
  custom: {
    50: '#8165ca',
    500: '#3a28b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a28b2;
$custom-light: #8165ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a28b2",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 247.826,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40468,
    "c": 0.20328,
    "h": 278.1
  },
  "luminance": 0.05631
}

Semantic roles & 50–950 ramp

primary
#3A28B2
secondary
#BCC76F
accent
#E641D1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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