#4227BE#4227BE

#4227BE is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.216 H 279.9°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4227BE
RGBrgb(66, 39, 190)
HSLhsl(251, 66%, 45%)
HSVhsv(251, 79%, 75%)
CMYKcmyk(65.3%, 79.5%, 0%, 25.5%)
CIE-LABlab(30.22, 53.43, -73.87)
CIE-LCHlch(30.22, 91.16, 305.88°)
OKLaboklab(42.24% 0.0373 -0.2132)
OKLCHoklch(42.24% 0.216 279.9)
XYZxyz(12.2636, 6.3260, 49.2800)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227BE #A3BE27
analogous
#2758BE #4227BE #8D27BE
triadic
#4227BE #BE4227 #27BE42
tetradic
#4227BE #BE2758 #A3BE27 #27BE8D
square
#4227BE #BE2758 #A3BE27 #27BE8D
split-complementary
#4227BE #BE8D27 #58BE27
monochromatic
#1F1258 #301D8B #4227BE #6349DA #8E7BE4

Accessibility & contrast

On white

9.27
#4227BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4227BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227BE
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227BE#FFFFFF#000000##FFFFFF
##4227BE1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC2
Deuteranopia (green-blind)
#0041BB
Tritanopia (blue-blind)
#005573
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4227be;
/* rgb */ color: rgb(66, 39, 190);
/* oklch */ color: oklch(42.2% 0.216 279.9);
Tailwind
colors: {
  custom: {
    50: '#8766d3',
    500: '#4227be',
    950: '#000000',
  },
}
SCSS
$custom: #4227be;
$custom-light: #8766d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4227be",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 190
  },
  "hsl": {
    "h": 250.728,
    "s": 65.939,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42238,
    "c": 0.21648,
    "h": 279.9
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#4227BE
secondary
#BCCC75
accent
#E93FCA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4227BE

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

Preview Lab → · Contrast checker → · Palette generator →

#4227BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva