#3A408C#3A408C

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

Color values

HEX#3A408C
RGBrgb(58, 64, 140)
HSLhsl(236, 41%, 39%)
HSVhsv(236, 59%, 55%)
CMYKcmyk(58.6%, 54.3%, 0%, 45.1%)
CIE-LABlab(30.54, 21.31, -43.22)
CIE-LCHlch(30.54, 48.18, 296.24°)
OKLaboklab(40.96% 0.0131 -0.1237)
OKLCHoklch(40.96% 0.124 276)
XYZxyz(8.3104, 6.4592, 25.6147)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A408C #8C863A
analogous
#3A698C #3A408C #5D3A8C
triadic
#3A408C #8C3A40 #408C3A
tetradic
#3A408C #8C3A69 #8C863A #3A8C5D
square
#3A408C #8C3A69 #8C863A #3A8C5D
split-complementary
#3A408C #8C5D3A #698C3A
monochromatic
#161835 #282C61 #3A408C #4E55B6 #797FC7

Accessibility & contrast

On white

9.16
#3A408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3A408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A408C
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A408C#FFFFFF#000000##FFFFFF
##3A408C1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8F
Deuteranopia (green-blind)
#00458A
Tritanopia (blue-blind)
#08515F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a408c;
/* rgb */ color: rgb(58, 64, 140);
/* oklch */ color: oklch(41.0% 0.124 276.0);
Tailwind
colors: {
  custom: {
    50: '#7874ae',
    500: '#3a408c',
    950: '#000000',
  },
}
SCSS
$custom: #3a408c;
$custom-light: #7874ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a408c",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 235.61,
    "s": 41.414,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40956,
    "c": 0.12439,
    "h": 276
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A408C

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

Preview Lab → · Contrast checker → · Palette generator →

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