#4126BF#4126BF

#4126BF is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.219 H 279.5°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4126BF
RGBrgb(65, 38, 191)
HSLhsl(251, 67%, 45%)
HSVhsv(251, 80%, 75%)
CMYKcmyk(66%, 80.1%, 0%, 25.1%)
CIE-LABlab(30.09, 54.09, -74.68)
CIE-LCHlch(30.09, 92.21, 305.91°)
OKLaboklab(42.15% 0.036 -0.2156)
OKLCHoklch(42.15% 0.219 279.5)
XYZxyz(12.2741, 6.2706, 49.8436)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4126BF #A4BF26
analogous
#2658BF #4126BF #8D26BF
triadic
#4126BF #BF4126 #26BF41
tetradic
#4126BF #BF2658 #A4BF26 #26BF8D
square
#4126BF #BF2658 #A4BF26 #26BF8D
split-complementary
#4126BF #BF8D26 #58BF26
monochromatic
#1E1259 #301C8C #4126BF #6248DB #8D7BE5

Accessibility & contrast

On white

9.32
#4126BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4126BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4126BF
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4126BF#FFFFFF#000000##FFFFFF
##4126BF1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4126bf;
/* rgb */ color: rgb(65, 38, 191);
/* oklch */ color: oklch(42.2% 0.219 279.5);
Tailwind
colors: {
  custom: {
    50: '#8766d4',
    500: '#4126bf',
    950: '#000000',
  },
}
SCSS
$custom: #4126bf;
$custom-light: #8766d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4126bf",
  "rgb": {
    "r": 65,
    "g": 38,
    "b": 191
  },
  "hsl": {
    "h": 250.588,
    "s": 66.812,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42154,
    "c": 0.21862,
    "h": 279.5
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#4126BF
secondary
#BDCD74
accent
#EA3ECB
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4126BF

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

Preview Lab → · Contrast checker → · Palette generator →

#4126BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva