#4026B2#4026B2

#4026B2 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.7% C 0.204 H 280.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#4026B2
RGBrgb(64, 38, 178)
HSLhsl(251, 65%, 42%)
HSVhsv(251, 79%, 70%)
CMYKcmyk(64%, 78.7%, 0%, 30.2%)
CIE-LABlab(28.62, 50.17, -69.40)
CIE-LCHlch(28.62, 85.63, 305.87°)
OKLaboklab(40.7% 0.0383 -0.2003)
OKLCHoklch(40.7% 0.204 280.8)
XYZxyz(10.8408, 5.6897, 42.6378)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026B2 #98B226
analogous
#2652B2 #4026B2 #8626B2
triadic
#4026B2 #B24026 #26B240
tetradic
#4026B2 #B22652 #98B226 #26B286
square
#4026B2 #B22652 #98B226 #26B286
split-complementary
#4026B2 #B28626 #52B226
monochromatic
#1C104D #2E1B80 #4026B2 #5B3FD6 #8672E1

Accessibility & contrast

On white

9.82
#4026B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4026B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4026B2
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4026B2#FFFFFF#000000##FFFFFF
##4026B21.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00506C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4026b2;
/* rgb */ color: rgb(64, 38, 178);
/* oklch */ color: oklch(40.7% 0.204 280.8);
Tailwind
colors: {
  custom: {
    50: '#8465ca',
    500: '#4026b2',
    950: '#000000',
  },
}
SCSS
$custom: #4026b2;
$custom-light: #8465ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4026b2",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 178
  },
  "hsl": {
    "h": 251.143,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40702,
    "c": 0.20391,
    "h": 280.8
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

primary
#4026B2
secondary
#B7C86C
accent
#E840C9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4026B2

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

Preview Lab → · Contrast checker → · Palette generator →

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