#4025B1#4025B1

#4025B1 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.5% C 0.204 H 281.1°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4025B1
RGBrgb(64, 37, 177)
HSLhsl(252, 65%, 42%)
HSVhsv(252, 79%, 69%)
CMYKcmyk(63.8%, 79.1%, 0%, 30.6%)
CIE-LABlab(28.34, 50.36, -69.25)
CIE-LCHlch(28.34, 85.62, 306.02°)
OKLaboklab(40.48% 0.0392 -0.1998)
OKLCHoklch(40.48% 0.204 281.1)
XYZxyz(10.7092, 5.5866, 42.1004)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025B1 #96B125
analogous
#2550B1 #4025B1 #8625B1
triadic
#4025B1 #B14025 #25B140
tetradic
#4025B1 #B12550 #96B125 #25B186
square
#4025B1 #B12550 #96B125 #25B186
split-complementary
#4025B1 #B18625 #50B125
monochromatic
#1B104C #2E1A7E #4025B1 #5A3DD6 #856FE1

Accessibility & contrast

On white

9.92
#4025B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4025B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4025B1
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4025B1#FFFFFF#000000##FFFFFF
##4025B11.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#003EAF
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4025b1;
/* rgb */ color: rgb(64, 37, 177);
/* oklch */ color: oklch(40.5% 0.204 281.1);
Tailwind
colors: {
  custom: {
    50: '#8464ca',
    500: '#4025b1',
    950: '#000000',
  },
}
SCSS
$custom: #4025b1;
$custom-light: #8464ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4025b1",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 251.571,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40482,
    "c": 0.20363,
    "h": 281.1
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#4025B1
secondary
#B6C86A
accent
#E83FC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4025B1

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

Preview Lab → · Contrast checker → · Palette generator →

#4025B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva