#3A408E#3A408E

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

Color values

HEX#3A408E
RGBrgb(58, 64, 142)
HSLhsl(236, 42%, 39%)
HSVhsv(236, 59%, 56%)
CMYKcmyk(59.2%, 54.9%, 0%, 44.3%)
CIE-LABlab(30.69, 22.01, -44.22)
CIE-LCHlch(30.69, 49.39, 296.46°)
OKLaboklab(41.11% 0.0132 -0.1267)
OKLCHoklch(41.11% 0.127 276)
XYZxyz(8.4592, 6.5187, 26.3984)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A408E #8E883A
analogous
#3A6A8E #3A408E #5E3A8E
triadic
#3A408E #8E3A40 #408E3A
tetradic
#3A408E #8E3A6A #8E883A #3A8E5E
square
#3A408E #8E3A6A #8E883A #3A8E5E
split-complementary
#3A408E #8E5E3A #6A8E3A
monochromatic
#171937 #282C63 #3A408E #4E56B7 #7A7FC9

Accessibility & contrast

On white

9.12
#3A408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A408E
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A408E#FFFFFF#000000##FFFFFF
##3A408E1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#035260
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a408e;
/* rgb */ color: rgb(58, 64, 142);
/* oklch */ color: oklch(41.1% 0.127 276.0);
Tailwind
colors: {
  custom: {
    50: '#7874b0',
    500: '#3a408e',
    950: '#000000',
  },
}
SCSS
$custom: #3a408e;
$custom-light: #7874b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a408e",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 235.714,
    "s": 42,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41108,
    "c": 0.12734,
    "h": 276
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#3A408E
secondary
#B2AD72
accent
#C956D2
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #3A408E

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

Preview Lab → · Contrast checker → · Palette generator →

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