#4228AF#4228AF

#4228AF is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.198 H 281.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4228AF
RGBrgb(66, 40, 175)
HSLhsl(252, 63%, 42%)
HSVhsv(252, 77%, 69%)
CMYKcmyk(62.3%, 77.1%, 0%, 31.4%)
CIE-LABlab(28.83, 48.52, -67.25)
CIE-LCHlch(28.83, 82.93, 305.81°)
OKLaboklab(40.8% 0.0409 -0.194)
OKLCHoklch(40.8% 0.198 281.9)
XYZxyz(10.7410, 5.7702, 41.0969)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228AF #95AF28
analogous
#2851AF #4228AF #8628AF
triadic
#4228AF #AF4228 #28AF42
tetradic
#4228AF #AF2851 #95AF28 #28AF86
square
#4228AF #AF2851 #95AF28 #28AF86
split-complementary
#4228AF #AF8628 #51AF28
monochromatic
#1C114B #2F1D7D #4228AF #5D41D4 #8773DF

Accessibility & contrast

On white

9.75
#4228AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4228AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4228AF
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4228AF#FFFFFF#000000##FFFFFF
##4228AF1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4228af;
/* rgb */ color: rgb(66, 40, 175);
/* oklch */ color: oklch(40.8% 0.198 281.9);
Tailwind
colors: {
  custom: {
    50: '#8466c8',
    500: '#4228af',
    950: '#000000',
  },
}
SCSS
$custom: #4228af;
$custom-light: #8466c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4228af",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 251.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.408,
    "c": 0.19825,
    "h": 281.9
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#4228AF
secondary
#B5C66D
accent
#E642C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4228AF

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

Preview Lab → · Contrast checker → · Palette generator →

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