#3A398E#3A398E

#3A398E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.137 H 278.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#3A398E
RGBrgb(58, 57, 142)
HSLhsl(241, 43%, 39%)
HSVhsv(241, 60%, 56%)
CMYKcmyk(59.2%, 59.9%, 0%, 44.3%)
CIE-LABlab(28.85, 26.63, -47.20)
CIE-LCHlch(28.85, 54.19, 299.44°)
OKLaboklab(39.74% 0.0207 -0.1355)
OKLCHoklch(39.74% 0.137 278.7)
XYZxyz(8.0890, 5.7782, 26.2750)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A398E #8D8E39
analogous
#39638E #3A398E #65398E
triadic
#3A398E #8E3A39 #398E3A
tetradic
#3A398E #8E3963 #8D8E39 #398E65
square
#3A398E #8E3963 #8D8E39 #398E65
split-complementary
#3A398E #8E6539 #638E39
monochromatic
#161637 #282762 #3A398E #4E4DB7 #7978C9

Accessibility & contrast

On white

9.74
#3A398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3A398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A398E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A398E#FFFFFF#000000##FFFFFF
##3A398E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#054D5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a398e;
/* rgb */ color: rgb(58, 57, 142);
/* oklch */ color: oklch(39.7% 0.137 278.7);
Tailwind
colors: {
  custom: {
    50: '#796fb0',
    500: '#3a398e',
    950: '#000000',
  },
}
SCSS
$custom: #3a398e;
$custom-light: #796fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a398e",
  "rgb": {
    "r": 58,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 240.706,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39738,
    "c": 0.13704,
    "h": 278.7
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#3A398E
secondary
#B1B271
accent
#D255D1
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3A398E

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

Preview Lab → · Contrast checker → · Palette generator →

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