#3A408F#3A408F

#3A408F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.129 H 275.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#3A408F
RGBrgb(58, 64, 143)
HSLhsl(236, 42%, 39%)
HSVhsv(236, 59%, 56%)
CMYKcmyk(59.4%, 55.2%, 0%, 43.9%)
CIE-LABlab(30.76, 22.36, -44.72)
CIE-LCHlch(30.76, 50.00, 296.57°)
OKLaboklab(41.19% 0.0133 -0.1281)
OKLCHoklch(41.19% 0.129 275.9)
XYZxyz(8.5346, 6.5489, 26.7956)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A408F #8F893A
analogous
#3A6B8F #3A408F #5F3A8F
triadic
#3A408F #8F3A40 #408F3A
tetradic
#3A408F #8F3A6B #8F893A #3A8F5F
square
#3A408F #8F3A6B #8F893A #3A8F5F
split-complementary
#3A408F #8F5F3A #6B8F3A
monochromatic
#171938 #282D63 #3A408F #4F56B7 #7A80C9

Accessibility & contrast

On white

9.09
#3A408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3A408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A408F
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A408F#FFFFFF#000000##FFFFFF
##3A408F1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#005261
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a408f;
/* rgb */ color: rgb(58, 64, 143);
/* oklch */ color: oklch(41.2% 0.129 275.9);
Tailwind
colors: {
  custom: {
    50: '#7874b0',
    500: '#3a408f',
    950: '#000000',
  },
}
SCSS
$custom: #3a408f;
$custom-light: #7874b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a408f",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 235.765,
    "s": 42.289,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41185,
    "c": 0.12879,
    "h": 275.9
  },
  "luminance": 0.0655
}

Semantic roles & 50–950 ramp

primary
#3A408F
secondary
#B3AE72
accent
#C956D2
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #3A408F

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

Preview Lab → · Contrast checker → · Palette generator →

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