#4123A8#4123A8

#4123A8 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.195 H 283.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4123A8
RGBrgb(65, 35, 168)
HSLhsl(254, 66%, 40%)
HSVhsv(254, 79%, 66%)
CMYKcmyk(61.3%, 79.2%, 0%, 34.1%)
CIE-LABlab(27.16, 48.78, -65.79)
CIE-LCHlch(27.16, 81.90, 306.55°)
OKLaboklab(39.4% 0.0445 -0.1897)
OKLCHoklch(39.4% 0.195 283.2)
XYZxyz(9.8467, 5.1524, 37.5138)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4123A8 #8AA823
analogous
#2347A8 #4123A8 #8423A8
triadic
#4123A8 #A84123 #23A841
tetradic
#4123A8 #A82347 #8AA823 #23A884
square
#4123A8 #A82347 #8AA823 #23A884
split-complementary
#4123A8 #A88423 #47A823
monochromatic
#1A0E43 #2D1875 #4123A8 #5834D5 #8266DF

Accessibility & contrast

On white

10.34
#4123A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4123A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4123A8
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4123A8#FFFFFF#000000##FFFFFF
##4123A81.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4123a8;
/* rgb */ color: rgb(65, 35, 168);
/* oklch */ color: oklch(39.4% 0.195 283.2);
Tailwind
colors: {
  custom: {
    50: '#8363c3',
    500: '#4123a8',
    950: '#000000',
  },
}
SCSS
$custom: #4123a8;
$custom-light: #8363c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4123a8",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 253.534,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39403,
    "c": 0.19484,
    "h": 283.2
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#4123A8
secondary
#AEC562
accent
#E83FC2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4123A8

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

Preview Lab → · Contrast checker → · Palette generator →

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