#4142B2#4142B2

#4142B2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.173 H 276.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#4142B2
RGBrgb(65, 66, 178)
HSLhsl(239, 47%, 48%)
HSVhsv(239, 63%, 70%)
CMYKcmyk(63.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(34.46, 34.43, -59.79)
CIE-LCHlch(34.46, 69.00, 299.94°)
OKLaboklab(44.91% 0.0195 -0.1722)
OKLCHoklch(44.91% 0.173 276.5)
XYZxyz(12.1615, 8.2336, 43.0592)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142B2 #B2B141
analogous
#417AB2 #4142B2 #7841B2
triadic
#4142B2 #B24142 #42B241
tetradic
#4142B2 #B2417A #B2B141 #41B278
square
#4142B2 #B2417A #B2B141 #41B278
split-complementary
#4142B2 #B27841 #7AB241
monochromatic
#202158 #313185 #4142B2 #6869C8 #9596D8

Accessibility & contrast

On white

7.93
#4142B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4142B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142B2
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142B2#FFFFFF#000000##FFFFFF
##4142B21.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4142b2;
/* rgb */ color: rgb(65, 66, 178);
/* oklch */ color: oklch(44.9% 0.173 276.5);
Tailwind
colors: {
  custom: {
    50: '#8276ca',
    500: '#4142b2',
    950: '#000000',
  },
}
SCSS
$custom: #4142b2;
$custom-light: #8276ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4142b2",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 239.469,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44911,
    "c": 0.17333,
    "h": 276.5
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#4142B2
secondary
#C4C38B
accent
#D552D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4142B2

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

Preview Lab → · Contrast checker → · Palette generator →

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