#4142C5#4142C5

#4142C5 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.6% C 0.198 H 275.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#4142C5
RGBrgb(65, 66, 197)
HSLhsl(240, 53%, 51%)
HSVhsv(240, 67%, 77%)
CMYKcmyk(67%, 66.5%, 0%, 22.7%)
CIE-LABlab(36.08, 40.84, -68.33)
CIE-LCHlch(36.08, 79.61, 300.87°)
OKLaboklab(46.59% 0.0179 -0.1973)
OKLCHoklch(46.59% 0.198 275.2)
XYZxyz(14.2029, 9.0502, 53.8109)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142C5 #C5C441
analogous
#4184C5 #4142C5 #8241C5
triadic
#4142C5 #C54142 #42C541
tetradic
#4142C5 #C54184 #C5C441 #41C582
square
#4142C5 #C54184 #C5C441 #41C582
split-complementary
#4142C5 #C58241 #84C541
monochromatic
#21216B #2F309A #4142C5 #7071D3 #9F9FE2

Accessibility & contrast

On white

7.47
#4142C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4142C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142C5
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142C5#FFFFFF#000000##FFFFFF
##4142C51.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#004FC3
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4142c5;
/* rgb */ color: rgb(65, 66, 197);
/* oklch */ color: oklch(46.6% 0.198 275.2);
Tailwind
colors: {
  custom: {
    50: '#8677d8',
    500: '#4142c5',
    950: '#000000',
  },
}
SCSS
$custom: #4142c5;
$custom-light: #8677d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4142c5",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 239.545,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46588,
    "c": 0.19807,
    "h": 275.2
  },
  "luminance": 0.09051
}

Semantic roles & 50–950 ramp

primary
#4142C5
secondary
#CECE94
accent
#DC4BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4142C5

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

Preview Lab → · Contrast checker → · Palette generator →

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