#3D408F#3D408F

#3D408F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.128 H 277.6°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#3D408F
RGBrgb(61, 64, 143)
HSLhsl(238, 40%, 40%)
HSVhsv(238, 57%, 56%)
CMYKcmyk(57.3%, 55.2%, 0%, 43.9%)
CIE-LABlab(30.98, 22.97, -44.35)
CIE-LCHlch(30.98, 49.95, 297.38°)
OKLaboklab(41.4% 0.0169 -0.127)
OKLCHoklch(41.4% 0.128 277.6)
XYZxyz(8.7142, 6.6415, 26.8040)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D408F #8F8C3D
analogous
#3D698F #3D408F #633D8F
triadic
#3D408F #8F3D40 #408F3D
tetradic
#3D408F #8F3D69 #8F8C3D #3D8F63
square
#3D408F #8F3D69 #8F8C3D #3D8F63
split-complementary
#3D408F #8F633D #698F3D
monochromatic
#181A39 #2B2D64 #3D408F #5357B6 #7E81C8

Accessibility & contrast

On white

9.02
#3D408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3D408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D408F
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D408F#FFFFFF#000000##FFFFFF
##3D408F1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C92
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#115261
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3d408f;
/* rgb */ color: rgb(61, 64, 143);
/* oklch */ color: oklch(41.4% 0.128 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a74b0',
    500: '#3d408f',
    950: '#000000',
  },
}
SCSS
$custom: #3d408f;
$custom-light: #7a74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d408f",
  "rgb": {
    "r": 61,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 237.805,
    "s": 40.196,
    "l": 40
  },
  "oklch": {
    "l": 0.41405,
    "c": 0.12808,
    "h": 277.6
  },
  "luminance": 0.06642
}

Semantic roles & 50–950 ramp

primary
#3D408F
secondary
#B2B076
accent
#CC58D0
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #3D408F

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

Preview Lab → · Contrast checker → · Palette generator →

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