#393798#393798

#393798 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.154 H 277.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#393798
RGBrgb(57, 55, 152)
HSLhsl(241, 47%, 41%)
HSVhsv(241, 64%, 60%)
CMYKcmyk(62.5%, 63.8%, 0%, 40.4%)
CIE-LABlab(29.08, 31.20, -52.96)
CIE-LCHlch(29.08, 61.46, 300.50°)
OKLaboklab(40.14% 0.0209 -0.1524)
OKLCHoklch(40.14% 0.154 277.8)
XYZxyz(8.7192, 5.8686, 30.3729)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393798 #969837
analogous
#376598 #393798 #693798
triadic
#393798 #983937 #379839
tetradic
#393798 #983765 #969837 #379869
square
#393798 #983765 #969837 #379869
split-complementary
#393798 #986937 #659837
monochromatic
#17163E #28276B #393798 #504DBF #7C7ACF

Accessibility & contrast

On white

9.66
#393798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#393798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393798
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393798#FFFFFF#000000##FFFFFF
##3937981.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #393798;
/* rgb */ color: rgb(57, 55, 152);
/* oklch */ color: oklch(40.1% 0.154 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a6eb7',
    500: '#393798',
    950: '#000000',
  },
}
SCSS
$custom: #393798;
$custom-light: #7a6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#393798",
  "rgb": {
    "r": 57,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 241.237,
    "s": 46.86,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40143,
    "c": 0.15388,
    "h": 277.8
  },
  "luminance": 0.05869
}

Semantic roles & 50–950 ramp

primary
#393798
secondary
#B7B873
accent
#D651D4
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #393798

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

Preview Lab → · Contrast checker → · Palette generator →

#393798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva