#3A2F85#3A2F85

#3A2F85 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.138 H 283.2°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#3A2F85
RGBrgb(58, 47, 133)
HSLhsl(248, 48%, 35%)
HSVhsv(248, 65%, 52%)
CMYKcmyk(56.4%, 64.7%, 0%, 47.8%)
CIE-LABlab(25.64, 30.04, -46.81)
CIE-LCHlch(25.64, 55.62, 302.68°)
OKLaboklab(37.16% 0.0315 -0.1344)
OKLCHoklch(37.16% 0.138 283.2)
XYZxyz(6.9938, 4.6256, 22.7101)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F85 #7A852F
analogous
#2F4F85 #3A2F85 #652F85
triadic
#3A2F85 #853A2F #2F853A
tetradic
#3A2F85 #852F4F #7A852F #2F8565
square
#3A2F85 #852F4F #7A852F #2F8565
split-complementary
#3A2F85 #85652F #4F852F
monochromatic
#130F2B #261F58 #3A2F85 #4E3FB2 #7266C9

Accessibility & contrast

On white

10.91
#3A2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3A2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F85
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F85#FFFFFF#000000##FFFFFF
##3A2F851.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#184455
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2f85;
/* rgb */ color: rgb(58, 47, 133);
/* oklch */ color: oklch(37.2% 0.138 283.2);
Tailwind
colors: {
  custom: {
    50: '#7868a9',
    500: '#3a2f85',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f85;
$custom-light: #7868a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f85",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 247.674,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37156,
    "c": 0.13804,
    "h": 283.2
  },
  "luminance": 0.04626
}

Semantic roles & 50–950 ramp

primary
#3A2F85
secondary
#A6B060
accent
#D750C6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #3A2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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