#4124B2#4124B2

#4124B2 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.205 H 281.5°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4124B2
RGBrgb(65, 36, 178)
HSLhsl(252, 66%, 42%)
HSVhsv(252, 80%, 70%)
CMYKcmyk(63.5%, 79.8%, 0%, 30.2%)
CIE-LABlab(28.38, 51.22, -69.79)
CIE-LCHlch(28.38, 86.57, 306.28°)
OKLaboklab(40.56% 0.0409 -0.2014)
OKLCHoklch(40.56% 0.205 281.5)
XYZxyz(10.8442, 5.5991, 42.6201)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4124B2 #95B224
analogous
#244EB2 #4124B2 #8824B2
triadic
#4124B2 #B24124 #24B241
tetradic
#4124B2 #B2244E #95B224 #24B288
square
#4124B2 #B2244E #95B224 #24B288
split-complementary
#4124B2 #B28824 #4EB224
monochromatic
#1C0F4C #2E1A7F #4124B2 #5C3CD8 #866FE2

Accessibility & contrast

On white

9.91
#4124B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4124B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4124B2
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4124B2#FFFFFF#000000##FFFFFF
##4124B21.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4124b2;
/* rgb */ color: rgb(65, 36, 178);
/* oklch */ color: oklch(40.6% 0.205 281.5);
Tailwind
colors: {
  custom: {
    50: '#8564ca',
    500: '#4124b2',
    950: '#000000',
  },
}
SCSS
$custom: #4124b2;
$custom-light: #8564ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4124b2",
  "rgb": {
    "r": 65,
    "g": 36,
    "b": 178
  },
  "hsl": {
    "h": 252.254,
    "s": 66.355,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40559,
    "c": 0.20548,
    "h": 281.5
  },
  "luminance": 0.056
}

Semantic roles & 50–950 ramp

primary
#4124B2
secondary
#B5C869
accent
#E93FC6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4124B2

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

Preview Lab → · Contrast checker → · Palette generator →

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