#4142CF#4142CF

#4142CF is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.211 H 274.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#4142CF
RGBrgb(65, 66, 207)
HSLhsl(240, 60%, 53%)
HSVhsv(240, 69%, 81%)
CMYKcmyk(68.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(36.97, 44.17, -72.68)
CIE-LCHlch(36.97, 85.05, 301.29°)
OKLaboklab(47.51% 0.0168 -0.21)
OKLCHoklch(47.51% 0.211 274.6)
XYZxyz(15.3869, 9.5238, 60.0468)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142CF #CFCE41
analogous
#4189CF #4142CF #8741CF
triadic
#4142CF #CF4142 #42CF41
tetradic
#4142CF #CF4189 #CFCE41 #41CF87
square
#4142CF #CF4189 #CFCE41 #41CF87
split-complementary
#4142CF #CF8741 #89CF41
monochromatic
#1E1F77 #2B2BA8 #4142CF #7273DB #A3A3E8

Accessibility & contrast

On white

7.23
#4142CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4142CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142CF
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142CF#FFFFFF#000000##FFFFFF
##4142CF1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4142cf;
/* rgb */ color: rgb(65, 66, 207);
/* oklch */ color: oklch(47.5% 0.211 274.6);
Tailwind
colors: {
  custom: {
    50: '#8877df',
    500: '#4142cf',
    950: '#000000',
  },
}
SCSS
$custom: #4142cf;
$custom-light: #8877df;
$custom-dark: #000000;
JSON
{
  "hex": "#4142cf",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 239.577,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.47507,
    "c": 0.21065,
    "h": 274.6
  },
  "luminance": 0.09525
}

Semantic roles & 50–950 ramp

primary
#4142CF
secondary
#D4D497
accent
#E245E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4142CF

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

Preview Lab → · Contrast checker → · Palette generator →

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