#3D398E#3D398E

#3D398E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.136 H 280.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#3D398E
RGBrgb(61, 57, 142)
HSLhsl(243, 43%, 39%)
HSVhsv(243, 60%, 56%)
CMYKcmyk(57%, 59.9%, 0%, 44.3%)
CIE-LABlab(29.08, 27.22, -46.80)
CIE-LCHlch(29.08, 54.14, 300.18°)
OKLaboklab(39.98% 0.0246 -0.1342)
OKLCHoklch(39.98% 0.136 280.4)
XYZxyz(8.2686, 5.8708, 26.2834)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D398E #8A8E39
analogous
#39608E #3D398E #68398E
triadic
#3D398E #8E3D39 #398E3D
tetradic
#3D398E #8E3960 #8A8E39 #398E68
square
#3D398E #8E3960 #8A8E39 #398E68
split-complementary
#3D398E #8E6839 #608E39
monochromatic
#171637 #2A2762 #3D398E #524DB7 #7C78C9

Accessibility & contrast

On white

9.66
#3D398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D398E
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D398E#FFFFFF#000000##FFFFFF
##3D398E1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#144D5E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3d398e;
/* rgb */ color: rgb(61, 57, 142);
/* oklch */ color: oklch(40.0% 0.136 280.4);
Tailwind
colors: {
  custom: {
    50: '#7a6fb0',
    500: '#3d398e',
    950: '#000000',
  },
}
SCSS
$custom: #3d398e;
$custom-light: #7a6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d398e",
  "rgb": {
    "r": 61,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 242.824,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39975,
    "c": 0.13644,
    "h": 280.4
  },
  "luminance": 0.05871
}

Semantic roles & 50–950 ramp

primary
#3D398E
secondary
#AFB271
accent
#D255CD
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3D398E

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

Preview Lab → · Contrast checker → · Palette generator →

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