#400F65#400F65

#400F65 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.138 H 305.0°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#400F65
RGBrgb(64, 15, 101)
HSLhsl(274, 74%, 23%)
HSVhsv(274, 85%, 40%)
CMYKcmyk(36.6%, 85.1%, 0%, 60.4%)
CIE-LABlab(17.33, 39.01, -39.80)
CIE-LCHlch(17.33, 55.73, 314.42°)
OKLaboklab(30.51% 0.0793 -0.1135)
OKLCHoklch(30.51% 0.138 305)
XYZxyz(4.6336, 2.3712, 12.5230)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F65 #34650F
analogous
#150F65 #400F65 #650F5F
triadic
#400F65 #65400F #0F6540
tetradic
#400F65 #65150F #34650F #0F5F65
square
#400F65 #65150F #34650F #0F5F65
split-complementary
#400F65 #5F650F #0F6515
monochromatic
#11041B #1E0730 #400F65 #62179A #841FD0

Accessibility & contrast

On white

14.25
#400F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#400F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F65
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F65#FFFFFF#000000##FFFFFF
##400F651.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#39263B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #400f65;
/* rgb */ color: rgb(64, 15, 101);
/* oklch */ color: oklch(30.5% 0.138 305.0);
Tailwind
colors: {
  custom: {
    50: '#795592',
    500: '#400f65',
    950: '#000000',
  },
}
SCSS
$custom: #400f65;
$custom-light: #795592;
$custom-dark: #000000;
JSON
{
  "hex": "#400f65",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 101
  },
  "hsl": {
    "h": 274.186,
    "s": 74.138,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30512,
    "c": 0.13843,
    "h": 305
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#400F65
secondary
#609E32
accent
#F13787
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #400F65

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

Preview Lab → · Contrast checker → · Palette generator →

#400F65 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva