#413798#413798

#413798 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.8% C 0.152 H 281.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#413798
RGBrgb(65, 55, 152)
HSLhsl(246, 47%, 41%)
HSVhsv(246, 64%, 60%)
CMYKcmyk(57.2%, 63.8%, 0%, 40.4%)
CIE-LABlab(29.72, 32.60, -51.88)
CIE-LCHlch(29.72, 61.28, 302.14°)
OKLaboklab(40.78% 0.0315 -0.149)
OKLCHoklch(40.78% 0.152 281.9)
XYZxyz(9.2119, 6.1226, 30.3960)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#413798 #8E9837
analogous
#375D98 #413798 #723798
triadic
#413798 #984137 #379841
tetradic
#413798 #98375D #8E9837 #379872
square
#413798 #98375D #8E9837 #379872
split-complementary
#413798 #987237 #5D9837
monochromatic
#1B163E #2E276B #413798 #594DBF #837ACF

Accessibility & contrast

On white

9.44
#413798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#413798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #413798
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##413798#FFFFFF#000000##FFFFFF
##4137981.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#154F62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #413798;
/* rgb */ color: rgb(65, 55, 152);
/* oklch */ color: oklch(40.8% 0.152 281.9);
Tailwind
colors: {
  custom: {
    50: '#7e6eb7',
    500: '#413798',
    950: '#000000',
  },
}
SCSS
$custom: #413798;
$custom-light: #7e6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#413798",
  "rgb": {
    "r": 65,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 246.186,
    "s": 46.86,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40775,
    "c": 0.15233,
    "h": 281.9
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#413798
secondary
#B1B873
accent
#D651C9
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #413798

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

Preview Lab → · Contrast checker → · Palette generator →

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