#3A2F83#3A2F83

#3A2F83 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.135 H 283.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#3A2F83
RGBrgb(58, 47, 131)
HSLhsl(248, 47%, 35%)
HSVhsv(248, 64%, 51%)
CMYKcmyk(55.7%, 64.1%, 0%, 48.6%)
CIE-LABlab(25.48, 29.37, -45.83)
CIE-LCHlch(25.48, 54.43, 302.65°)
OKLaboklab(36.98% 0.0317 -0.1315)
OKLCHoklch(36.98% 0.135 283.5)
XYZxyz(6.8569, 4.5709, 21.9893)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F83 #78832F
analogous
#2F4E83 #3A2F83 #642F83
triadic
#3A2F83 #833A2F #2F833A
tetradic
#3A2F83 #832F4E #78832F #2F8364
square
#3A2F83 #832F4E #78832F #2F8364
split-complementary
#3A2F83 #83642F #4E832F
monochromatic
#120F29 #261F56 #3A2F83 #4E3FB0 #7265C8

Accessibility & contrast

On white

10.97
#3A2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3A2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F83
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F83#FFFFFF#000000##FFFFFF
##3A2F831.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F86
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#1A4354
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a2f83;
/* rgb */ color: rgb(58, 47, 131);
/* oklch */ color: oklch(37.0% 0.135 283.5);
Tailwind
colors: {
  custom: {
    50: '#7768a8',
    500: '#3a2f83',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f83;
$custom-light: #7768a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f83",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 247.857,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36984,
    "c": 0.13526,
    "h": 283.5
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#3A2F83
secondary
#A4AF5F
accent
#D751C5
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #3A2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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