#3A2F89#3A2F89

#3A2F89 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.144 H 282.5°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3A2F89
RGBrgb(58, 47, 137)
HSLhsl(247, 49%, 36%)
HSVhsv(247, 66%, 54%)
CMYKcmyk(57.7%, 65.7%, 0%, 46.3%)
CIE-LABlab(25.98, 31.37, -48.76)
CIE-LCHlch(25.98, 57.98, 302.75°)
OKLaboklab(37.51% 0.0311 -0.1401)
OKLCHoklch(37.51% 0.144 282.5)
XYZxyz(7.2754, 4.7383, 24.1933)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F89 #7E892F
analogous
#2F5189 #3A2F89 #672F89
triadic
#3A2F89 #893A2F #2F893A
tetradic
#3A2F89 #892F51 #7E892F #2F8967
square
#3A2F89 #892F51 #7E892F #2F8967
split-complementary
#3A2F89 #89672F #51892F
monochromatic
#13102E #271F5B #3A2F89 #4D3FB7 #7467CB

Accessibility & contrast

On white

10.78
#3A2F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A2F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F89
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F89#FFFFFF#000000##FFFFFF
##3A2F891.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#124557
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2f89;
/* rgb */ color: rgb(58, 47, 137);
/* oklch */ color: oklch(37.5% 0.144 282.5);
Tailwind
colors: {
  custom: {
    50: '#7968ac',
    500: '#3a2f89',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f89;
$custom-light: #7968ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f89",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 247.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37505,
    "c": 0.14355,
    "h": 282.5
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#3A2F89
secondary
#A8B262
accent
#D84FC8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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