#4142CA#4142CA

#4142CA is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.0% C 0.204 H 274.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#4142CA
RGBrgb(65, 66, 202)
HSLhsl(240, 56%, 52%)
HSVhsv(240, 68%, 79%)
CMYKcmyk(67.8%, 67.3%, 0%, 20.8%)
CIE-LABlab(36.52, 42.51, -70.52)
CIE-LCHlch(36.52, 82.34, 301.08°)
OKLaboklab(47.04% 0.0174 -0.2037)
OKLCHoklch(47.04% 0.204 274.9)
XYZxyz(14.7853, 9.2832, 56.8783)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142CA #CAC941
analogous
#4187CA #4142CA #8541CA
triadic
#4142CA #CA4142 #42CA41
tetradic
#4142CA #CA4187 #CAC941 #41CA85
square
#4142CA #CA4187 #CAC941 #41CA85
split-complementary
#4142CA #CA8541 #87CA41
monochromatic
#202071 #2D2EA1 #4142CA #7172D7 #A1A1E5

Accessibility & contrast

On white

7.35
#4142CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4142CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142CA
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142CA#FFFFFF#000000##FFFFFF
##4142CA1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4142ca;
/* rgb */ color: rgb(65, 66, 202);
/* oklch */ color: oklch(47.0% 0.204 274.9);
Tailwind
colors: {
  custom: {
    50: '#8777db',
    500: '#4142ca',
    950: '#000000',
  },
}
SCSS
$custom: #4142ca;
$custom-light: #8777db;
$custom-dark: #000000;
JSON
{
  "hex": "#4142ca",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 239.562,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47045,
    "c": 0.2044,
    "h": 274.9
  },
  "luminance": 0.09285
}

Semantic roles & 50–950 ramp

primary
#4142CA
secondary
#D1D196
accent
#DF48E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4142CA

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

Preview Lab → · Contrast checker → · Palette generator →

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