#4226BF#4226BF

#4226BF is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.218 H 279.9°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4226BF
RGBrgb(66, 38, 191)
HSLhsl(251, 67%, 45%)
HSVhsv(251, 80%, 75%)
CMYKcmyk(65.4%, 80.1%, 0%, 25.1%)
CIE-LABlab(30.17, 54.18, -74.54)
CIE-LCHlch(30.17, 92.15, 306.01°)
OKLaboklab(42.23% 0.0375 -0.2152)
OKLCHoklch(42.23% 0.218 279.9)
XYZxyz(12.3409, 6.3051, 49.8468)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4226BF #A3BF26
analogous
#2657BF #4226BF #8E26BF
triadic
#4226BF #BF4226 #26BF42
tetradic
#4226BF #BF2657 #A3BF26 #26BF8E
square
#4226BF #BF2657 #A3BF26 #26BF8E
split-complementary
#4226BF #BF8E26 #57BF26
monochromatic
#1F1259 #301C8C #4226BF #6348DB #8E7BE5

Accessibility & contrast

On white

9.29
#4226BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4226BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4226BF
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4226BF#FFFFFF#000000##FFFFFF
##4226BF1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.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: #4226bf;
/* rgb */ color: rgb(66, 38, 191);
/* oklch */ color: oklch(42.2% 0.218 279.9);
Tailwind
colors: {
  custom: {
    50: '#8866d4',
    500: '#4226bf',
    950: '#000000',
  },
}
SCSS
$custom: #4226bf;
$custom-light: #8866d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4226bf",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 191
  },
  "hsl": {
    "h": 250.98,
    "s": 66.812,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42234,
    "c": 0.21843,
    "h": 279.9
  },
  "luminance": 0.06306
}

Semantic roles & 50–950 ramp

primary
#4226BF
secondary
#BCCD74
accent
#EA3ECA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4226BF

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

Preview Lab → · Contrast checker → · Palette generator →

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