#3A3D8A#3A3D8A

#3A3D8A is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.126 H 277.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#3A3D8A
RGBrgb(58, 61, 138)
HSLhsl(238, 41%, 38%)
HSVhsv(238, 58%, 54%)
CMYKcmyk(58%, 55.8%, 0%, 45.9%)
CIE-LABlab(29.59, 22.60, -43.52)
CIE-LCHlch(29.59, 49.04, 297.45°)
OKLaboklab(40.2% 0.0163 -0.1246)
OKLCHoklch(40.2% 0.126 277.5)
XYZxyz(7.9997, 6.0715, 24.7902)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3D8A #8A873A
analogous
#3A658A #3A3D8A #5F3A8A
triadic
#3A3D8A #8A3A3D #3D8A3A
tetradic
#3A3D8A #8A3A65 #8A873A #3A8A5F
square
#3A3D8A #8A3A65 #8A873A #3A8A5F
split-complementary
#3A3D8A #8A5F3A #658A3A
monochromatic
#161734 #282A5F #3A3D8A #4D51B4 #787BC6

Accessibility & contrast

On white

9.48
#3A3D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3A3D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3D8A
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3D8A#FFFFFF#000000##FFFFFF
##3A3D8A1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B498D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#0D4F5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a3d8a;
/* rgb */ color: rgb(58, 61, 138);
/* oklch */ color: oklch(40.2% 0.126 277.5);
Tailwind
colors: {
  custom: {
    50: '#7872ad',
    500: '#3a3d8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a3d8a;
$custom-light: #7872ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3d8a",
  "rgb": {
    "r": 58,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 237.75,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40198,
    "c": 0.12567,
    "h": 277.5
  },
  "luminance": 0.06072
}

Semantic roles & 50–950 ramp

primary
#3A3D8A
secondary
#B0AD70
accent
#CC57D1
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #3A3D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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