#3A389E#3A389E

#3A389E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.161 H 277.5°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#3A389E
RGBrgb(58, 56, 158)
HSLhsl(241, 48%, 42%)
HSVhsv(241, 65%, 62%)
CMYKcmyk(63.3%, 64.6%, 0%, 38%)
CIE-LABlab(29.90, 32.79, -55.26)
CIE-LCHlch(29.90, 64.26, 300.68°)
OKLaboklab(40.92% 0.0209 -0.1592)
OKLCHoklch(40.92% 0.161 277.5)
XYZxyz(9.3287, 6.1958, 33.0454)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A389E #9C9E38
analogous
#38699E #3A389E #6D389E
triadic
#3A389E #9E3A38 #389E3A
tetradic
#3A389E #9E3869 #9C9E38 #389E6D
square
#3A389E #9E3869 #9C9E38 #389E6D
split-complementary
#3A389E #9E6D38 #699E38
monochromatic
#191844 #292871 #3A389E #5452C2 #807FD2

Accessibility & contrast

On white

9.38
#3A389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3A389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A389E
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A389E#FFFFFF#000000##FFFFFF
##3A389E1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a389e;
/* rgb */ color: rgb(58, 56, 158);
/* oklch */ color: oklch(40.9% 0.161 277.5);
Tailwind
colors: {
  custom: {
    50: '#7c6fbc',
    500: '#3a389e',
    950: '#000000',
  },
}
SCSS
$custom: #3a389e;
$custom-light: #7c6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a389e",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 241.176,
    "s": 47.664,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.16055,
    "h": 277.5
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#3A389E
secondary
#BABB77
accent
#D751D5
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3A389E

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

Preview Lab → · Contrast checker → · Palette generator →

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