#4228BC#4228BC

#4228BC is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.1% C 0.213 H 280.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4228BC
RGBrgb(66, 40, 188)
HSLhsl(251, 65%, 45%)
HSVhsv(251, 79%, 74%)
CMYKcmyk(64.9%, 78.7%, 0%, 26.3%)
CIE-LABlab(30.17, 52.37, -72.77)
CIE-LCHlch(30.17, 89.65, 305.75°)
OKLaboklab(42.14% 0.0373 -0.2101)
OKLCHoklch(42.14% 0.213 280.1)
XYZxyz(12.0798, 6.3057, 48.1478)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228BC #A2BC28
analogous
#2858BC #4228BC #8C28BC
triadic
#4228BC #BC4228 #28BC42
tetradic
#4228BC #BC2858 #A2BC28 #28BC8C
square
#4228BC #BC2858 #A2BC28 #28BC8C
split-complementary
#4228BC #BC8C28 #58BC28
monochromatic
#1F1357 #301D8A #4228BC #6249D8 #8E7BE3

Accessibility & contrast

On white

9.29
#4228BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4228BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4228BC
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4228BC#FFFFFF#000000##FFFFFF
##4228BC1.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)
#004CC0
Deuteranopia (green-blind)
#0041B9
Tritanopia (blue-blind)
#005472
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4228bc;
/* rgb */ color: rgb(66, 40, 188);
/* oklch */ color: oklch(42.1% 0.213 280.1);
Tailwind
colors: {
  custom: {
    50: '#8767d2',
    500: '#4228bc',
    950: '#000000',
  },
}
SCSS
$custom: #4228bc;
$custom-light: #8767d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4228bc",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 250.541,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4214,
    "c": 0.21335,
    "h": 280.1
  },
  "luminance": 0.06307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4228BC

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

Preview Lab → · Contrast checker → · Palette generator →

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