#3A398D#3A398D

#3A398D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.136 H 278.8°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#3A398D
RGBrgb(58, 57, 141)
HSLhsl(241, 42%, 39%)
HSVhsv(241, 60%, 55%)
CMYKcmyk(58.9%, 59.6%, 0%, 44.7%)
CIE-LABlab(28.77, 26.29, -46.70)
CIE-LCHlch(28.77, 53.59, 299.37°)
OKLaboklab(39.66% 0.0207 -0.134)
OKLCHoklch(39.66% 0.136 278.8)
XYZxyz(8.0142, 5.7483, 25.8814)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A398D #8C8D39
analogous
#39628D #3A398D #64398D
triadic
#3A398D #8D3A39 #398D3A
tetradic
#3A398D #8D3962 #8C8D39 #398D64
square
#3A398D #8D3962 #8C8D39 #398D64
split-complementary
#3A398D #8D6439 #628D39
monochromatic
#161636 #282761 #3A398D #4E4CB7 #7978C8

Accessibility & contrast

On white

9.77
#3A398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#3A398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A398D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A398D#FFFFFF#000000##FFFFFF
##3A398D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#084D5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a398d;
/* rgb */ color: rgb(58, 57, 141);
/* oklch */ color: oklch(39.7% 0.136 278.8);
Tailwind
colors: {
  custom: {
    50: '#786faf',
    500: '#3a398d',
    950: '#000000',
  },
}
SCSS
$custom: #3a398d;
$custom-light: #786faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a398d",
  "rgb": {
    "r": 58,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 240.714,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39657,
    "c": 0.1356,
    "h": 278.8
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#3A398D
secondary
#B1B270
accent
#D256D1
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3A398D

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

Preview Lab → · Contrast checker → · Palette generator →

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