#3A309E#3A309E

#3A309E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.170 H 279.3°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#3A309E
RGBrgb(58, 48, 158)
HSLhsl(245, 53%, 40%)
HSVhsv(245, 70%, 62%)
CMYKcmyk(63.3%, 69.6%, 0%, 38%)
CIE-LABlab(28.06, 37.72, -58.27)
CIE-LCHlch(28.06, 69.41, 302.92°)
OKLaboklab(39.59% 0.0275 -0.168)
OKLCHoklch(39.59% 0.17 279.3)
XYZxyz(8.9715, 5.4814, 32.9264)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A309E #949E30
analogous
#305D9E #3A309E #71309E
triadic
#3A309E #9E3A30 #309E3A
tetradic
#3A309E #9E305D #949E30 #309E71
square
#3A309E #9E305D #949E30 #309E71
split-complementary
#3A309E #9E7130 #5D9E30
monochromatic
#181340 #29226F #3A309E #5145C6 #7D74D5

Accessibility & contrast

On white

10.02
#3A309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#3A309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A309E
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A309E#FFFFFF#000000##FFFFFF
##3A309E1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3a309e;
/* rgb */ color: rgb(58, 48, 158);
/* oklch */ color: oklch(39.6% 0.170 279.3);
Tailwind
colors: {
  custom: {
    50: '#7c69bc',
    500: '#3a309e',
    950: '#000000',
  },
}
SCSS
$custom: #3a309e;
$custom-light: #7c69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a309e",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 245.455,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39591,
    "c": 0.17025,
    "h": 279.3
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#3A309E
secondary
#B5BD6D
accent
#DD4BD0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A309E

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

Preview Lab → · Contrast checker → · Palette generator →

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