#3D3F97#3D3F97

#3D3F97 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.141 H 277.4°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#3D3F97
RGBrgb(61, 63, 151)
HSLhsl(239, 42%, 42%)
HSVhsv(239, 60%, 59%)
CMYKcmyk(59.6%, 58.3%, 0%, 40.8%)
CIE-LABlab(31.30, 26.40, -48.72)
CIE-LCHlch(31.30, 55.41, 298.45°)
OKLaboklab(41.84% 0.0182 -0.1398)
OKLCHoklch(41.84% 0.141 277.4)
XYZxyz(9.2861, 6.7808, 30.0916)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D3F97 #97953D
analogous
#3D6C97 #3D3F97 #683D97
triadic
#3D3F97 #973D3F #3F973D
tetradic
#3D3F97 #973D6C #97953D #3D9768
square
#3D3F97 #973D6C #97953D #3D9768
split-complementary
#3D3F97 #97683D #6C973D
monochromatic
#1A1B40 #2B2D6B #3D3F97 #5659BB #8284CC

Accessibility & contrast

On white

8.91
#3D3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3D3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D3F97
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D3F97#FFFFFF#000000##FFFFFF
##3D3F971.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3d3f97;
/* rgb */ color: rgb(61, 63, 151);
/* oklch */ color: oklch(41.8% 0.141 277.4);
Tailwind
colors: {
  custom: {
    50: '#7b74b6',
    500: '#3d3f97',
    950: '#000000',
  },
}
SCSS
$custom: #3d3f97;
$custom-light: #7b74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d3f97",
  "rgb": {
    "r": 61,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 238.667,
    "s": 42.453,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41835,
    "c": 0.14099,
    "h": 277.4
  },
  "luminance": 0.06781
}

Semantic roles & 50–950 ramp

primary
#3D3F97
secondary
#B7B579
accent
#CF56D2
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #3D3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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