#4025B0#4025B0

#4025B0 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.4% C 0.202 H 281.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4025B0
RGBrgb(64, 37, 176)
HSLhsl(252, 65%, 42%)
HSVhsv(252, 79%, 69%)
CMYKcmyk(63.6%, 79%, 0%, 31%)
CIE-LABlab(28.24, 50.06, -68.82)
CIE-LCHlch(28.24, 85.10, 306.03°)
OKLaboklab(40.38% 0.0395 -0.1986)
OKLCHoklch(40.38% 0.202 281.2)
XYZxyz(10.6099, 5.5469, 41.5774)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025B0 #95B025
analogous
#254FB0 #4025B0 #8625B0
triadic
#4025B0 #B04025 #25B040
tetradic
#4025B0 #B0254F #95B025 #25B086
square
#4025B0 #B0254F #95B025 #25B086
split-complementary
#4025B0 #B08625 #4FB025
monochromatic
#1B104B #2E1A7D #4025B0 #5A3CD6 #856FE1

Accessibility & contrast

On white

9.95
#4025B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4025B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4025B0
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4025B0#FFFFFF#000000##FFFFFF
##4025B01.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B4
Deuteranopia (green-blind)
#003DAE
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4025b0;
/* rgb */ color: rgb(64, 37, 176);
/* oklch */ color: oklch(40.4% 0.202 281.2);
Tailwind
colors: {
  custom: {
    50: '#8464c9',
    500: '#4025b0',
    950: '#000000',
  },
}
SCSS
$custom: #4025b0;
$custom-light: #8464c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4025b0",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 176
  },
  "hsl": {
    "h": 251.655,
    "s": 65.258,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40378,
    "c": 0.20248,
    "h": 281.2
  },
  "luminance": 0.05548
}

Semantic roles & 50–950 ramp

primary
#4025B0
secondary
#B5C76A
accent
#E840C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4025B0

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

Preview Lab → · Contrast checker → · Palette generator →

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