#4142D4#4142D4

#4142D4 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.217 H 274.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4142D4
RGBrgb(65, 66, 212)
HSLhsl(240, 63%, 54%)
HSVhsv(240, 69%, 83%)
CMYKcmyk(69.3%, 68.9%, 0%, 16.9%)
CIE-LABlab(37.43, 45.82, -74.81)
CIE-LCHlch(37.43, 87.73, 301.48°)
OKLaboklab(47.98% 0.0161 -0.2162)
OKLCHoklch(47.98% 0.217 274.3)
XYZxyz(16.0079, 9.7722, 63.3172)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142D4 #D4D341
analogous
#418CD4 #4142D4 #8A41D4
triadic
#4142D4 #D44142 #42D441
tetradic
#4142D4 #D4418C #D4D341 #41D48A
square
#4142D4 #D4418C #D4D341 #41D48A
split-complementary
#4142D4 #D48A41 #8CD441
monochromatic
#1D1D7E #2829B0 #4142D4 #7374DF #A5A5EB

Accessibility & contrast

On white

7.11
#4142D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4142D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142D4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142D4#FFFFFF#000000##FFFFFF
##4142D41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0051D1
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4142d4;
/* rgb */ color: rgb(65, 66, 212);
/* oklch */ color: oklch(48.0% 0.217 274.3);
Tailwind
colors: {
  custom: {
    50: '#8977e2',
    500: '#4142d4',
    950: '#000000',
  },
}
SCSS
$custom: #4142d4;
$custom-light: #8977e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4142d4",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 239.592,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.47975,
    "c": 0.21683,
    "h": 274.3
  },
  "luminance": 0.09774
}

Semantic roles & 50–950 ramp

primary
#4142D4
secondary
#D8D799
accent
#E542E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4142D4

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

Preview Lab → · Contrast checker → · Palette generator →

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