#3A408A#3A408A

#3A408A is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.121 H 276.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#3A408A
RGBrgb(58, 64, 138)
HSLhsl(236, 41%, 38%)
HSVhsv(236, 58%, 54%)
CMYKcmyk(58%, 53.6%, 0%, 45.9%)
CIE-LABlab(30.40, 20.61, -42.21)
CIE-LCHlch(30.40, 46.97, 296.02°)
OKLaboklab(40.81% 0.0129 -0.1207)
OKLCHoklch(40.81% 0.121 276.1)
XYZxyz(8.1643, 6.4007, 24.8451)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A408A #8A843A
analogous
#3A688A #3A408A #5C3A8A
triadic
#3A408A #8A3A40 #408A3A
tetradic
#3A408A #8A3A68 #8A843A #3A8A5C
square
#3A408A #8A3A68 #8A843A #3A8A5C
split-complementary
#3A408A #8A5C3A #688A3A
monochromatic
#161834 #282C5F #3A408A #4D55B4 #787EC6

Accessibility & contrast

On white

9.21
#3A408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3A408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A408A
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A408A#FFFFFF#000000##FFFFFF
##3A408A1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174B8D
Deuteranopia (green-blind)
#064488
Tritanopia (blue-blind)
#0C515E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a408a;
/* rgb */ color: rgb(58, 64, 138);
/* oklch */ color: oklch(40.8% 0.121 276.1);
Tailwind
colors: {
  custom: {
    50: '#7774ad',
    500: '#3a408a',
    950: '#000000',
  },
}
SCSS
$custom: #3a408a;
$custom-light: #7774ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a408a",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 235.5,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40805,
    "c": 0.12143,
    "h": 276.1
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#3A408A
secondary
#B0AB70
accent
#C857D1
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #3A408A

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

Preview Lab → · Contrast checker → · Palette generator →

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