#401962#401962

#401962 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.123 H 304.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#401962
RGBrgb(64, 25, 98)
HSLhsl(272, 59%, 24%)
HSVhsv(272, 74%, 38%)
CMYKcmyk(34.7%, 74.5%, 0%, 61.6%)
CIE-LABlab(18.66, 33.69, -35.66)
CIE-LCHlch(18.66, 49.06, 313.38°)
OKLaboklab(31.37% 0.07 -0.1013)
OKLCHoklch(31.37% 0.123 304.6)
XYZxyz(4.6661, 2.6671, 11.8219)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401962 #3B6219
analogous
#1C1962 #401962 #621960
triadic
#401962 #624019 #196240
tetradic
#401962 #621C19 #3B6219 #196062
square
#401962 #621C19 #3B6219 #196062
split-complementary
#401962 #606219 #19621C
monochromatic
#100618 #200D31 #401962 #602593 #8032C4

Accessibility & contrast

On white

13.70
#401962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401962 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401962
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401962#FFFFFF#000000##FFFFFF
##4019621.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002D60
Tritanopia (blue-blind)
#3A2A3B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401962;
/* rgb */ color: rgb(64, 25, 98);
/* oklch */ color: oklch(31.4% 0.123 304.6);
Tailwind
colors: {
  custom: {
    50: '#78598f',
    500: '#401962',
    950: '#000000',
  },
}
SCSS
$custom: #401962;
$custom-light: #78598f;
$custom-dark: #000000;
JSON
{
  "hex": "#401962",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 98
  },
  "hsl": {
    "h": 272.055,
    "s": 59.35,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31369,
    "c": 0.12316,
    "h": 304.6
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#401962
secondary
#68983F
accent
#E3458F
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #401962

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

Preview Lab → · Contrast checker → · Palette generator →

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