#4026B5#4026B5

#4026B5 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.0% C 0.207 H 280.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4026B5
RGBrgb(64, 38, 181)
HSLhsl(251, 65%, 43%)
HSVhsv(251, 79%, 71%)
CMYKcmyk(64.6%, 79%, 0%, 29%)
CIE-LABlab(28.93, 51.06, -70.66)
CIE-LCHlch(28.93, 87.18, 305.85°)
OKLaboklab(41.02% 0.0375 -0.204)
OKLCHoklch(41.02% 0.207 280.4)
XYZxyz(11.1453, 5.8115, 44.2415)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026B5 #9BB526
analogous
#2653B5 #4026B5 #8726B5
triadic
#4026B5 #B54026 #26B540
tetradic
#4026B5 #B52653 #9BB526 #26B587
square
#4026B5 #B52653 #9BB526 #26B587
split-complementary
#4026B5 #B58726 #53B526
monochromatic
#1C1150 #2E1B82 #4026B5 #5C41D7 #8874E2

Accessibility & contrast

On white

9.71
#4026B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4026B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4026B5
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4026B5#FFFFFF#000000##FFFFFF
##4026B51.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B9
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#00516D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4026b5;
/* rgb */ color: rgb(64, 38, 181);
/* oklch */ color: oklch(41.0% 0.207 280.4);
Tailwind
colors: {
  custom: {
    50: '#8565cd',
    500: '#4026b5',
    950: '#000000',
  },
}
SCSS
$custom: #4026b5;
$custom-light: #8565cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4026b5",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 181
  },
  "hsl": {
    "h": 250.909,
    "s": 65.297,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41016,
    "c": 0.20738,
    "h": 280.4
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#4026B5
secondary
#B8C96E
accent
#E840CA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #4026B5

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

Preview Lab → · Contrast checker → · Palette generator →

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