#3A28A2#3A28A2

#3A28A2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.184 H 280.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#3A28A2
RGBrgb(58, 40, 162)
HSLhsl(249, 60%, 40%)
HSVhsv(249, 75%, 64%)
CMYKcmyk(64.2%, 75.3%, 0%, 36.5%)
CIE-LABlab(26.81, 43.58, -62.77)
CIE-LCHlch(26.81, 76.42, 304.77°)
OKLaboklab(38.81% 0.0326 -0.1811)
OKLCHoklch(38.81% 0.184 280.2)
XYZxyz(9.0232, 5.0251, 34.6698)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A28A2 #90A228
analogous
#2853A2 #3A28A2 #7728A2
triadic
#3A28A2 #A23A28 #28A23A
tetradic
#3A28A2 #A22853 #90A228 #28A277
square
#3A28A2 #A22853 #90A228 #28A277
split-complementary
#3A28A2 #A27728 #53A228
monochromatic
#171040 #281C71 #3A28A2 #4F39CE #7B6ADA

Accessibility & contrast

On white

10.47
#3A28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3A28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A28A2
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A28A2#FFFFFF#000000##FFFFFF
##3A28A21.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a28a2;
/* rgb */ color: rgb(58, 40, 162);
/* oklch */ color: oklch(38.8% 0.184 280.2);
Tailwind
colors: {
  custom: {
    50: '#7e65bf',
    500: '#3a28a2',
    950: '#000000',
  },
}
SCSS
$custom: #3a28a2;
$custom-light: #7e65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a28a2",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 248.852,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38811,
    "c": 0.18404,
    "h": 280.2
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#3A28A2
secondary
#B3C165
accent
#E444CC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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