#3D2F98#3D2F98

#3D2F98 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.163 H 281.8°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#3D2F98
RGBrgb(61, 47, 152)
HSLhsl(248, 53%, 39%)
HSVhsv(248, 69%, 60%)
CMYKcmyk(59.9%, 69.1%, 0%, 40.4%)
CIE-LABlab(27.55, 36.81, -55.44)
CIE-LCHlch(27.55, 66.55, 303.58°)
OKLaboklab(39.12% 0.0334 -0.1596)
OKLCHoklch(39.12% 0.163 281.8)
XYZxyz(8.6067, 5.2915, 30.2675)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2F98 #8A982F
analogous
#2F5698 #3D2F98 #722F98
triadic
#3D2F98 #983D2F #2F983D
tetradic
#3D2F98 #982F56 #8A982F #2F9872
square
#3D2F98 #982F56 #8A982F #2F9872
split-complementary
#3D2F98 #98722F #56982F
monochromatic
#17123B #2A2169 #3D2F98 #5240C4 #7C6FD2

Accessibility & contrast

On white

10.20
#3D2F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3D2F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2F98
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2F98#FFFFFF#000000##FFFFFF
##3D2F981.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#014A5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d2f98;
/* rgb */ color: rgb(61, 47, 152);
/* oklch */ color: oklch(39.1% 0.163 281.8);
Tailwind
colors: {
  custom: {
    50: '#7d69b7',
    500: '#3d2f98',
    950: '#000000',
  },
}
SCSS
$custom: #3d2f98;
$custom-light: #7d69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2f98",
  "rgb": {
    "r": 61,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 248,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39116,
    "c": 0.16309,
    "h": 281.8
  },
  "luminance": 0.05292
}

Semantic roles & 50–950 ramp

primary
#3D2F98
secondary
#AFBA69
accent
#DC4CC9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3D2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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