#3A28B7#3A28B7

#3A28B7 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 41.0% C 0.209 H 277.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#3A28B7
RGBrgb(58, 40, 183)
HSLhsl(248, 64%, 44%)
HSVhsv(248, 78%, 72%)
CMYKcmyk(68.3%, 78.1%, 0%, 28.2%)
CIE-LABlab(28.99, 50.09, -71.77)
CIE-LCHlch(28.99, 87.52, 304.91°)
OKLaboklab(41% 0.0273 -0.2074)
OKLCHoklch(41% 0.209 277.5)
XYZxyz(11.0482, 5.8350, 45.3346)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A28B7 #A5B728
analogous
#285DB7 #3A28B7 #8128B7
triadic
#3A28B7 #B73A28 #28B73A
tetradic
#3A28B7 #B7285D #A5B728 #28B781
square
#3A28B7 #B7285D #A5B728 #28B781
split-complementary
#3A28B7 #B78128 #5DB728
monochromatic
#1A1253 #2A1D85 #3A28B7 #5846D6 #8578E1

Accessibility & contrast

On white

9.69
#3A28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3A28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A28B7
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A28B7#FFFFFF#000000##FFFFFF
##3A28B71.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABB
Deuteranopia (green-blind)
#003EB4
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a28b7;
/* rgb */ color: rgb(58, 40, 183);
/* oklch */ color: oklch(41.0% 0.209 277.5);
Tailwind
colors: {
  custom: {
    50: '#8266ce',
    500: '#3a28b7',
    950: '#000000',
  },
}
SCSS
$custom: #3a28b7;
$custom-light: #8266ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a28b7",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 247.552,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40998,
    "c": 0.20916,
    "h": 277.5
  },
  "luminance": 0.05836
}

Semantic roles & 50–950 ramp

primary
#3A28B7
secondary
#BEC972
accent
#E741D2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3A28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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