#4142AC#4142AC

#4142AC is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.4% C 0.165 H 276.9°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#4142AC
RGBrgb(65, 66, 172)
HSLhsl(239, 45%, 46%)
HSVhsv(239, 62%, 67%)
CMYKcmyk(62.2%, 61.6%, 0%, 32.5%)
CIE-LABlab(33.98, 32.39, -57.02)
CIE-LCHlch(33.98, 65.58, 299.60°)
OKLaboklab(44.4% 0.0198 -0.1641)
OKLCHoklch(44.4% 0.165 276.9)
XYZxyz(11.5722, 7.9979, 39.9557)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142AC #ACAB41
analogous
#4178AC #4142AC #7641AC
triadic
#4142AC #AC4142 #42AC41
tetradic
#4142AC #AC4178 #ACAB41 #41AC76
square
#4142AC #AC4178 #ACAB41 #41AC76
split-complementary
#4142AC #AC7641 #78AC41
monochromatic
#1F2053 #303180 #4142AC #6566C5 #9292D6

Accessibility & contrast

On white

8.08
#4142AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4142AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142AC
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142AC#FFFFFF#000000##FFFFFF
##4142AC1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4142ac;
/* rgb */ color: rgb(65, 66, 172);
/* oklch */ color: oklch(44.4% 0.165 276.9);
Tailwind
colors: {
  custom: {
    50: '#8176c6',
    500: '#4142ac',
    950: '#000000',
  },
}
SCSS
$custom: #4142ac;
$custom-light: #8176c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4142ac",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 239.439,
    "s": 45.148,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44402,
    "c": 0.16526,
    "h": 276.9
  },
  "luminance": 0.07999
}

Semantic roles & 50–950 ramp

primary
#4142AC
secondary
#C1C088
accent
#D453D5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4142AC

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

Preview Lab → · Contrast checker → · Palette generator →

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