#4029B2#4029B2

#4029B2 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.1% C 0.201 H 280.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4029B2
RGBrgb(64, 41, 178)
HSLhsl(250, 63%, 43%)
HSVhsv(250, 77%, 70%)
CMYKcmyk(64%, 77%, 0%, 30.2%)
CIE-LABlab(29.13, 48.69, -68.55)
CIE-LCHlch(29.13, 84.08, 305.39°)
OKLaboklab(41.06% 0.0366 -0.1978)
OKLCHoklch(41.06% 0.201 280.5)
XYZxyz(10.9406, 5.8894, 42.6711)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029B2 #9BB229
analogous
#2956B2 #4029B2 #8429B2
triadic
#4029B2 #B24029 #29B240
tetradic
#4029B2 #B22956 #9BB229 #29B284
square
#4029B2 #B22956 #9BB229 #29B284
split-complementary
#4029B2 #B28429 #56B229
monochromatic
#1C124F #2E1E80 #4029B2 #5C44D4 #8876DF

Accessibility & contrast

On white

9.64
#4029B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4029B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4029B2
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4029B2#FFFFFF#000000##FFFFFF
##4029B21.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4029b2;
/* rgb */ color: rgb(64, 41, 178);
/* oklch */ color: oklch(41.1% 0.201 280.5);
Tailwind
colors: {
  custom: {
    50: '#8466ca',
    500: '#4029b2',
    950: '#000000',
  },
}
SCSS
$custom: #4029b2;
$custom-light: #8466ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4029b2",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 178
  },
  "hsl": {
    "h": 250.073,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41063,
    "c": 0.20118,
    "h": 280.5
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

primary
#4029B2
secondary
#B8C770
accent
#E642CA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4029B2

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

Preview Lab → · Contrast checker → · Palette generator →

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