#4229BA#4229BA

#4229BA is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.0% C 0.210 H 280.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4229BA
RGBrgb(66, 41, 186)
HSLhsl(250, 64%, 45%)
HSVhsv(250, 78%, 73%)
CMYKcmyk(64.5%, 78%, 0%, 27.1%)
CIE-LABlab(30.13, 51.30, -71.65)
CIE-LCHlch(30.13, 88.12, 305.60°)
OKLaboklab(42.05% 0.0373 -0.2068)
OKLCHoklch(42.05% 0.21 280.2)
XYZxyz(11.8998, 6.2884, 47.0315)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4229BA #A1BA29
analogous
#2958BA #4229BA #8B29BA
triadic
#4229BA #BA4229 #29BA42
tetradic
#4229BA #BA2958 #A1BA29 #29BA8B
square
#4229BA #BA2958 #A1BA29 #29BA8B
split-complementary
#4229BA #BA8B29 #58BA29
monochromatic
#1E1356 #301E88 #4229BA #6249D7 #8D7BE2

Accessibility & contrast

On white

9.30
#4229BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4229BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4229BA
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4229BA#FFFFFF#000000##FFFFFF
##4229BA1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#0041B7
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4229ba;
/* rgb */ color: rgb(66, 41, 186);
/* oklch */ color: oklch(42.0% 0.210 280.2);
Tailwind
colors: {
  custom: {
    50: '#8667d0',
    500: '#4229ba',
    950: '#000000',
  },
}
SCSS
$custom: #4229ba;
$custom-light: #8667d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4229ba",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 186
  },
  "hsl": {
    "h": 250.345,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42049,
    "c": 0.21017,
    "h": 280.2
  },
  "luminance": 0.06289
}

Semantic roles & 50–950 ramp

primary
#4229BA
secondary
#BBCA75
accent
#E741CA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4229BA

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

Preview Lab → · Contrast checker → · Palette generator →

#4229BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva