#4122B4#4122B4

#4122B4 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.209 H 281.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#4122B4
RGBrgb(65, 34, 180)
HSLhsl(253, 68%, 42%)
HSVhsv(253, 81%, 71%)
CMYKcmyk(63.9%, 81.1%, 0%, 29.4%)
CIE-LABlab(28.28, 52.71, -71.14)
CIE-LCHlch(28.28, 88.54, 306.53°)
OKLaboklab(40.56% 0.0413 -0.2053)
OKLCHoklch(40.56% 0.209 281.4)
XYZxyz(10.9876, 5.5623, 43.6658)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4122B4 #95B422
analogous
#224CB4 #4122B4 #8A22B4
triadic
#4122B4 #B44122 #22B441
tetradic
#4122B4 #B4224C #95B422 #22B48A
square
#4122B4 #B4224C #95B422 #22B48A
split-complementary
#4122B4 #B48A22 #4CB422
monochromatic
#1C0F4D #2E1881 #4122B4 #5C3ADA #866DE3

Accessibility & contrast

On white

9.94
#4122B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4122B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4122B4
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4122B4#FFFFFF#000000##FFFFFF
##4122B41.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4122b4;
/* rgb */ color: rgb(65, 34, 180);
/* oklch */ color: oklch(40.6% 0.209 281.4);
Tailwind
colors: {
  custom: {
    50: '#8563cc',
    500: '#4122b4',
    950: '#000000',
  },
}
SCSS
$custom: #4122b4;
$custom-light: #8563cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4122b4",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 252.74,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40555,
    "c": 0.20941,
    "h": 281.4
  },
  "luminance": 0.05563
}

Semantic roles & 50–950 ramp

primary
#4122B4
secondary
#B5CA68
accent
#EB3DC6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4122B4

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

Preview Lab → · Contrast checker → · Palette generator →

#4122B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva