#4142C2#4142C2

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

Color values

HEX#4142C2
RGBrgb(65, 66, 194)
HSLhsl(240, 51%, 51%)
HSVhsv(240, 66%, 76%)
CMYKcmyk(66.5%, 66%, 0%, 23.9%)
CIE-LABlab(35.82, 39.84, -67.01)
CIE-LCHlch(35.82, 77.95, 300.73°)
OKLaboklab(46.32% 0.0182 -0.1934)
OKLCHoklch(46.32% 0.194 275.4)
XYZxyz(13.8626, 8.9141, 52.0185)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142C2 #C2C141
analogous
#4182C2 #4142C2 #8041C2
triadic
#4142C2 #C24142 #42C241
tetradic
#4142C2 #C24182 #C2C141 #41C280
square
#4142C2 #C24182 #C2C141 #41C280
split-complementary
#4142C2 #C28041 #82C241
monochromatic
#212267 #303196 #4142C2 #6F70D1 #9E9EE0

Accessibility & contrast

On white

7.55
#4142C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#4142C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142C2
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142C2#FFFFFF#000000##FFFFFF
##4142C21.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004EC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4142c2;
/* rgb */ color: rgb(65, 66, 194);
/* oklch */ color: oklch(46.3% 0.194 275.4);
Tailwind
colors: {
  custom: {
    50: '#8577d5',
    500: '#4142c2',
    950: '#000000',
  },
}
SCSS
$custom: #4142c2;
$custom-light: #8577d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4142c2",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 239.535,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46317,
    "c": 0.19425,
    "h": 275.4
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#4142C2
secondary
#CCCC93
accent
#DA4DDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4142C2

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

Preview Lab → · Contrast checker → · Palette generator →

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