#4142C1#4142C1

#4142C1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.2% C 0.193 H 275.4°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#4142C1
RGBrgb(65, 66, 193)
HSLhsl(240, 51%, 51%)
HSVhsv(240, 66%, 76%)
CMYKcmyk(66.3%, 65.8%, 0%, 24.3%)
CIE-LABlab(35.73, 39.50, -66.56)
CIE-LCHlch(35.73, 77.40, 300.69°)
OKLaboklab(46.23% 0.0183 -0.1921)
OKLCHoklch(46.23% 0.193 275.4)
XYZxyz(13.7507, 8.8693, 51.4290)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142C1 #C1C041
analogous
#4182C1 #4142C1 #8041C1
triadic
#4142C1 #C14142 #42C141
tetradic
#4142C1 #C14182 #C1C041 #41C180
square
#4142C1 #C14182 #C1C041 #41C180
split-complementary
#4142C1 #C18041 #82C141
monochromatic
#212266 #303194 #4142C1 #6F70D0 #9D9EDF

Accessibility & contrast

On white

7.57
#4142C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4142C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142C1
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142C1#FFFFFF#000000##FFFFFF
##4142C11.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC5
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4142c1;
/* rgb */ color: rgb(65, 66, 193);
/* oklch */ color: oklch(46.2% 0.193 275.4);
Tailwind
colors: {
  custom: {
    50: '#8577d5',
    500: '#4142c1',
    950: '#000000',
  },
}
SCSS
$custom: #4142c1;
$custom-light: #8577d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4142c1",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 239.531,
    "s": 50.794,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46227,
    "c": 0.19296,
    "h": 275.4
  },
  "luminance": 0.08871
}

Semantic roles & 50–950 ramp

primary
#4142C1
secondary
#CBCB92
accent
#D94EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4142C1

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

Preview Lab → · Contrast checker → · Palette generator →

#4142C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva