#4027B2#4027B2

#4027B2 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 40.8% C 0.203 H 280.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4027B2
RGBrgb(64, 39, 178)
HSLhsl(251, 64%, 43%)
HSVhsv(251, 78%, 70%)
CMYKcmyk(64%, 78.1%, 0%, 30.2%)
CIE-LABlab(28.78, 49.69, -69.12)
CIE-LCHlch(28.78, 85.12, 305.71°)
OKLaboklab(40.82% 0.0377 -0.1995)
OKLCHoklch(40.82% 0.203 280.7)
XYZxyz(10.8732, 5.7545, 42.6486)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027B2 #99B227
analogous
#2754B2 #4027B2 #8527B2
triadic
#4027B2 #B24027 #27B240
tetradic
#4027B2 #B22754 #99B227 #27B285
square
#4027B2 #B22754 #99B227 #27B285
split-complementary
#4027B2 #B28527 #54B227
monochromatic
#1C114E #2E1C80 #4027B2 #5C41D5 #8773E0

Accessibility & contrast

On white

9.76
#4027B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4027B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027B2
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027B2#FFFFFF#000000##FFFFFF
##4027B21.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00506C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4027b2;
/* rgb */ color: rgb(64, 39, 178);
/* oklch */ color: oklch(40.8% 0.203 280.7);
Tailwind
colors: {
  custom: {
    50: '#8465ca',
    500: '#4027b2',
    950: '#000000',
  },
}
SCSS
$custom: #4027b2;
$custom-light: #8465ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4027b2",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 250.791,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4082,
    "c": 0.20302,
    "h": 280.7
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#4027B2
secondary
#B7C86D
accent
#E741C9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4027B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4027B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva