#3A2F7D#3A2F7D

#3A2F7D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.127 H 284.6°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#3A2F7D
RGBrgb(58, 47, 125)
HSLhsl(248, 45%, 34%)
HSVhsv(248, 62%, 49%)
CMYKcmyk(53.6%, 62.4%, 0%, 51%)
CIE-LABlab(24.99, 27.38, -42.84)
CIE-LCHlch(24.99, 50.84, 302.58°)
OKLaboklab(36.48% 0.032 -0.1227)
OKLCHoklch(36.48% 0.127 284.6)
XYZxyz(6.4620, 4.4129, 19.9093)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F7D #727D2F
analogous
#2F4B7D #3A2F7D #612F7D
triadic
#3A2F7D #7D3A2F #2F7D3A
tetradic
#3A2F7D #7D2F4B #727D2F #2F7D61
square
#3A2F7D #7D2F4B #727D2F #2F7D61
split-complementary
#3A2F7D #7D612F #4B7D2F
monochromatic
#110E24 #251E51 #3A2F7D #4F40A9 #7062C4

Accessibility & contrast

On white

11.15
#3A2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3A2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F7D
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F7D#FFFFFF#000000##FFFFFF
##3A2F7D1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#204151
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2f7d;
/* rgb */ color: rgb(58, 47, 125);
/* oklch */ color: oklch(36.5% 0.127 284.6);
Tailwind
colors: {
  custom: {
    50: '#7668a3',
    500: '#3a2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f7d;
$custom-light: #7668a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f7d",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 248.462,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36478,
    "c": 0.12683,
    "h": 284.6
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#3A2F7D
secondary
#A0AB5D
accent
#D553C3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3A2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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