#3D398D#3D398D

#3D398D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.135 H 280.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#3D398D
RGBrgb(61, 57, 141)
HSLhsl(243, 42%, 39%)
HSVhsv(243, 60%, 55%)
CMYKcmyk(56.7%, 59.6%, 0%, 44.7%)
CIE-LABlab(29.01, 26.88, -46.31)
CIE-LCHlch(29.01, 53.54, 300.14°)
OKLaboklab(39.89% 0.0246 -0.1328)
OKLCHoklch(39.89% 0.135 280.5)
XYZxyz(8.1938, 5.8409, 25.8898)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D398D #898D39
analogous
#395F8D #3D398D #67398D
triadic
#3D398D #8D3D39 #398D3D
tetradic
#3D398D #8D395F #898D39 #398D67
square
#3D398D #8D395F #898D39 #398D67
split-complementary
#3D398D #8D6739 #5F8D39
monochromatic
#171636 #2A2761 #3D398D #514CB7 #7C78C8

Accessibility & contrast

On white

9.69
#3D398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3D398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D398D
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D398D#FFFFFF#000000##FFFFFF
##3D398D1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#164D5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3d398d;
/* rgb */ color: rgb(61, 57, 141);
/* oklch */ color: oklch(39.9% 0.135 280.5);
Tailwind
colors: {
  custom: {
    50: '#7a6faf',
    500: '#3d398d',
    950: '#000000',
  },
}
SCSS
$custom: #3d398d;
$custom-light: #7a6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d398d",
  "rgb": {
    "r": 61,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 242.857,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39894,
    "c": 0.13501,
    "h": 280.5
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#3D398D
secondary
#AEB270
accent
#D256CC
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3D398D

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

Preview Lab → · Contrast checker → · Palette generator →

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