#4142A2#4142A2

#4142A2 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.152 H 277.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#4142A2
RGBrgb(65, 66, 162)
HSLhsl(239, 43%, 45%)
HSVhsv(239, 60%, 64%)
CMYKcmyk(59.9%, 59.3%, 0%, 36.5%)
CIE-LABlab(33.20, 28.98, -52.30)
CIE-LCHlch(33.20, 59.79, 298.99°)
OKLaboklab(43.58% 0.0201 -0.1502)
OKLCHoklch(43.58% 0.152 277.6)
XYZxyz(10.6477, 7.6281, 35.0867)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142A2 #A2A141
analogous
#4173A2 #4142A2 #7041A2
triadic
#4142A2 #A24142 #42A241
tetradic
#4142A2 #A24173 #A2A141 #41A270
square
#4142A2 #A24173 #A2A141 #41A270
split-complementary
#4142A2 #A27041 #73A241
monochromatic
#1E1E4B #2F3076 #4142A2 #6162BF #8C8DD1

Accessibility & contrast

On white

8.31
#4142A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4142A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142A2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142A2#FFFFFF#000000##FFFFFF
##4142A21.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4142a2;
/* rgb */ color: rgb(65, 66, 162);
/* oklch */ color: oklch(43.6% 0.152 277.6);
Tailwind
colors: {
  custom: {
    50: '#7f76be',
    500: '#4142a2',
    950: '#000000',
  },
}
SCSS
$custom: #4142a2;
$custom-light: #7f76be;
$custom-dark: #000000;
JSON
{
  "hex": "#4142a2",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 239.381,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43579,
    "c": 0.15154,
    "h": 277.6
  },
  "luminance": 0.07629
}

Semantic roles & 50–950 ramp

primary
#4142A2
secondary
#BCBB83
accent
#D155D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #4142A2

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

Preview Lab → · Contrast checker → · Palette generator →

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