#401FAF#401FAF

#401FAF is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.6% C 0.206 H 282.0°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#401FAF
RGBrgb(64, 31, 175)
HSLhsl(254, 70%, 40%)
HSVhsv(254, 82%, 69%)
CMYKcmyk(63.4%, 82.3%, 0%, 31.4%)
CIE-LABlab(27.20, 52.49, -69.95)
CIE-LCHlch(27.20, 87.45, 306.89°)
OKLaboklab(39.62% 0.043 -0.2018)
OKLCHoklch(39.62% 0.206 282)
XYZxyz(10.3398, 5.1643, 41.0011)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FAF #8EAF1F
analogous
#1F46AF #401FAF #881FAF
triadic
#401FAF #AF401F #1FAF40
tetradic
#401FAF #AF1F46 #8EAF1F #1FAF88
square
#401FAF #AF1F46 #8EAF1F #1FAF88
split-complementary
#401FAF #AF881F #46AF1F
monochromatic
#1A0D47 #2D167B #401FAF #5831DA #8265E4

Accessibility & contrast

On white

10.33
#401FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#401FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FAF
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FAF#FFFFFF#000000##FFFFFF
##401FAF1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B3
Deuteranopia (green-blind)
#003BAD
Tritanopia (blue-blind)
#004C69
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #401faf;
/* rgb */ color: rgb(64, 31, 175);
/* oklch */ color: oklch(39.6% 0.206 282.0);
Tailwind
colors: {
  custom: {
    50: '#8461c8',
    500: '#401faf',
    950: '#000000',
  },
}
SCSS
$custom: #401faf;
$custom-light: #8461c8;
$custom-dark: #000000;
JSON
{
  "hex": "#401faf",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 175
  },
  "hsl": {
    "h": 253.75,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39624,
    "c": 0.20631,
    "h": 282
  },
  "luminance": 0.05165
}

Semantic roles & 50–950 ramp

primary
#401FAF
secondary
#B1C961
accent
#ED3BC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#401FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva