#4142C4#4142C4

#4142C4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.197 H 275.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#4142C4
RGBrgb(65, 66, 196)
HSLhsl(240, 53%, 51%)
HSVhsv(240, 67%, 77%)
CMYKcmyk(66.8%, 66.3%, 0%, 23.1%)
CIE-LABlab(35.99, 40.51, -67.89)
CIE-LCHlch(35.99, 79.06, 300.82°)
OKLaboklab(46.5% 0.018 -0.196)
OKLCHoklch(46.5% 0.197 275.3)
XYZxyz(14.0887, 9.0045, 53.2094)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142C4 #C4C341
analogous
#4183C4 #4142C4 #8141C4
triadic
#4142C4 #C44142 #42C441
tetradic
#4142C4 #C44183 #C4C341 #41C481
square
#4142C4 #C44183 #C4C341 #41C481
split-complementary
#4142C4 #C48141 #83C441
monochromatic
#21216A #2F3098 #4142C4 #7070D3 #9E9FE1

Accessibility & contrast

On white

7.50
#4142C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4142C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142C4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142C4#FFFFFF#000000##FFFFFF
##4142C41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4142c4;
/* rgb */ color: rgb(65, 66, 196);
/* oklch */ color: oklch(46.5% 0.197 275.3);
Tailwind
colors: {
  custom: {
    50: '#8677d7',
    500: '#4142c4',
    950: '#000000',
  },
}
SCSS
$custom: #4142c4;
$custom-light: #8677d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4142c4",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 239.542,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46498,
    "c": 0.1968,
    "h": 275.3
  },
  "luminance": 0.09006
}

Semantic roles & 50–950 ramp

primary
#4142C4
secondary
#CDCD93
accent
#DB4CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #4142C4

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

Preview Lab → · Contrast checker → · Palette generator →

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