#4026BF#4026BF

#4026BF is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.1% C 0.219 H 279.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4026BF
RGBrgb(64, 38, 191)
HSLhsl(250, 67%, 45%)
HSVhsv(250, 80%, 75%)
CMYKcmyk(66.5%, 80.1%, 0%, 25.1%)
CIE-LABlab(30.00, 53.99, -74.82)
CIE-LCHlch(30.00, 92.27, 305.81°)
OKLaboklab(42.08% 0.0346 -0.2161)
OKLCHoklch(42.08% 0.219 279.1)
XYZxyz(12.2084, 6.2368, 49.8406)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026BF #A5BF26
analogous
#2659BF #4026BF #8C26BF
triadic
#4026BF #BF4026 #26BF40
tetradic
#4026BF #BF2659 #A5BF26 #26BF8C
square
#4026BF #BF2659 #A5BF26 #26BF8C
split-complementary
#4026BF #BF8C26 #59BF26
monochromatic
#1E1259 #2F1C8C #4026BF #6148DB #8D7BE5

Accessibility & contrast

On white

9.34
#4026BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4026BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4026BF
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4026BF#FFFFFF#000000##FFFFFF
##4026BF1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC3
Deuteranopia (green-blind)
#0041BC
Tritanopia (blue-blind)
#005573
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4026bf;
/* rgb */ color: rgb(64, 38, 191);
/* oklch */ color: oklch(42.1% 0.219 279.1);
Tailwind
colors: {
  custom: {
    50: '#8766d4',
    500: '#4026bf',
    950: '#000000',
  },
}
SCSS
$custom: #4026bf;
$custom-light: #8766d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4026bf",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 191
  },
  "hsl": {
    "h": 250.196,
    "s": 66.812,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42076,
    "c": 0.21882,
    "h": 279.1
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#4026BF
secondary
#BECD74
accent
#EA3ECD
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4026BF

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

Preview Lab → · Contrast checker → · Palette generator →

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