#4229B2#4229B2

#4229B2 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.2% C 0.201 H 281.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4229B2
RGBrgb(66, 41, 178)
HSLhsl(251, 63%, 43%)
HSVhsv(251, 77%, 70%)
CMYKcmyk(62.9%, 77%, 0%, 30.2%)
CIE-LABlab(29.31, 48.92, -68.25)
CIE-LCHlch(29.31, 83.97, 305.63°)
OKLaboklab(41.23% 0.0395 -0.1969)
OKLCHoklch(41.23% 0.201 281.3)
XYZxyz(11.0731, 5.9577, 42.6773)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4229B2 #99B229
analogous
#2954B2 #4229B2 #8629B2
triadic
#4229B2 #B24229 #29B242
tetradic
#4229B2 #B22954 #99B229 #29B286
square
#4229B2 #B22954 #99B229 #29B286
split-complementary
#4229B2 #B28629 #54B229
monochromatic
#1D124F #301E80 #4229B2 #5E44D4 #8976DF

Accessibility & contrast

On white

9.58
#4229B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4229B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4229B2
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4229B2#FFFFFF#000000##FFFFFF
##4229B21.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0040B0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4229b2;
/* rgb */ color: rgb(66, 41, 178);
/* oklch */ color: oklch(41.2% 0.201 281.3);
Tailwind
colors: {
  custom: {
    50: '#8567ca',
    500: '#4229b2',
    950: '#000000',
  },
}
SCSS
$custom: #4229b2;
$custom-light: #8567ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4229b2",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 178
  },
  "hsl": {
    "h": 250.949,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41228,
    "c": 0.20083,
    "h": 281.3
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#4229B2
secondary
#B7C770
accent
#E642C8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4229B2

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

Preview Lab → · Contrast checker → · Palette generator →

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