#4123B2#4123B2

#4123B2 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.4% C 0.206 H 281.6°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4123B2
RGBrgb(65, 35, 178)
HSLhsl(253, 67%, 42%)
HSVhsv(253, 80%, 70%)
CMYKcmyk(63.5%, 80.3%, 0%, 30.2%)
CIE-LABlab(28.22, 51.68, -70.05)
CIE-LCHlch(28.22, 87.05, 306.42°)
OKLaboklab(40.45% 0.0414 -0.2021)
OKLCHoklch(40.45% 0.206 281.6)
XYZxyz(10.8144, 5.5394, 42.6102)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4123B2 #94B223
analogous
#234DB2 #4123B2 #8823B2
triadic
#4123B2 #B24123 #23B241
tetradic
#4123B2 #B2234D #94B223 #23B288
square
#4123B2 #B2234D #94B223 #23B288
split-complementary
#4123B2 #B28823 #4DB223
monochromatic
#1C0F4C #2E197F #4123B2 #5B3AD8 #866DE2

Accessibility & contrast

On white

9.96
#4123B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4123B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4123B2
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4123B2#FFFFFF#000000##FFFFFF
##4123B21.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4123b2;
/* rgb */ color: rgb(65, 35, 178);
/* oklch */ color: oklch(40.4% 0.206 281.6);
Tailwind
colors: {
  custom: {
    50: '#8563ca',
    500: '#4123b2',
    950: '#000000',
  },
}
SCSS
$custom: #4123b2;
$custom-light: #8563ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4123b2",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 252.587,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40449,
    "c": 0.20632,
    "h": 281.6
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#4123B2
secondary
#B4C968
accent
#EA3EC6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4123B2

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

Preview Lab → · Contrast checker → · Palette generator →

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