#3A408D#3A408D

#3A408D is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.126 H 276.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#3A408D
RGBrgb(58, 64, 141)
HSLhsl(236, 42%, 39%)
HSVhsv(236, 59%, 55%)
CMYKcmyk(58.9%, 54.6%, 0%, 44.7%)
CIE-LABlab(30.61, 21.66, -43.72)
CIE-LCHlch(30.61, 48.79, 296.35°)
OKLaboklab(41.03% 0.0131 -0.1252)
OKLCHoklch(41.03% 0.126 276)
XYZxyz(8.3845, 6.4888, 26.0048)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A408D #8D873A
analogous
#3A6A8D #3A408D #5E3A8D
triadic
#3A408D #8D3A40 #408D3A
tetradic
#3A408D #8D3A6A #8D873A #3A8D5E
square
#3A408D #8D3A6A #8D873A #3A8D5E
split-complementary
#3A408D #8D5E3A #6A8D3A
monochromatic
#161936 #282C62 #3A408D #4E56B6 #797FC8

Accessibility & contrast

On white

9.14
#3A408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#3A408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A408D
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A408D#FFFFFF#000000##FFFFFF
##3A408D1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C90
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#055260
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a408d;
/* rgb */ color: rgb(58, 64, 141);
/* oklch */ color: oklch(41.0% 0.126 276.0);
Tailwind
colors: {
  custom: {
    50: '#7874af',
    500: '#3a408d',
    950: '#000000',
  },
}
SCSS
$custom: #3a408d;
$custom-light: #7874af;
$custom-dark: #000000;
JSON
{
  "hex": "#3a408d",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 235.663,
    "s": 41.709,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41032,
    "c": 0.12587,
    "h": 276
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#3A408D
secondary
#B1AD71
accent
#C956D2
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #3A408D

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

Preview Lab → · Contrast checker → · Palette generator →

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