#4228BD#4228BD

#4228BD is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.2% C 0.214 H 279.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4228BD
RGBrgb(66, 40, 189)
HSLhsl(250, 65%, 45%)
HSVhsv(250, 79%, 74%)
CMYKcmyk(65.1%, 78.8%, 0%, 25.9%)
CIE-LABlab(30.28, 52.67, -73.18)
CIE-LCHlch(30.28, 90.16, 305.74°)
OKLaboklab(42.25% 0.037 -0.2113)
OKLCHoklch(42.25% 0.215 279.9)
XYZxyz(12.1879, 6.3490, 48.7174)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228BD #A3BD28
analogous
#2858BD #4228BD #8D28BD
triadic
#4228BD #BD4228 #28BD42
tetradic
#4228BD #BD2858 #A3BD28 #28BD8D
square
#4228BD #BD2858 #A3BD28 #28BD8D
split-complementary
#4228BD #BD8D28 #58BD28
monochromatic
#1F1358 #301D8A #4228BD #634AD9 #8E7CE3

Accessibility & contrast

On white

9.25
#4228BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4228BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4228BD
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4228BD#FFFFFF#000000##FFFFFF
##4228BD1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0041BA
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4228bd;
/* rgb */ color: rgb(66, 40, 189);
/* oklch */ color: oklch(42.2% 0.214 279.9);
Tailwind
colors: {
  custom: {
    50: '#8767d2',
    500: '#4228bd',
    950: '#000000',
  },
}
SCSS
$custom: #4228bd;
$custom-light: #8767d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4228bd",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 250.47,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42245,
    "c": 0.2145,
    "h": 279.9
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#4228BD
secondary
#BCCB75
accent
#E840CB
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4228BD

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

Preview Lab → · Contrast checker → · Palette generator →

#4228BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva