#4142AF#4142AF

#4142AF is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.169 H 276.7°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#4142AF
RGBrgb(65, 66, 175)
HSLhsl(239, 46%, 47%)
HSVhsv(239, 63%, 69%)
CMYKcmyk(62.9%, 62.3%, 0%, 31.4%)
CIE-LABlab(34.22, 33.41, -58.41)
CIE-LCHlch(34.22, 67.29, 299.77°)
OKLaboklab(44.66% 0.0197 -0.1682)
OKLCHoklch(44.66% 0.169 276.7)
XYZxyz(11.8635, 8.1144, 41.4902)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142AF #AFAE41
analogous
#4179AF #4142AF #7741AF
triadic
#4142AF #AF4142 #42AF41
tetradic
#4142AF #AF4179 #AFAE41 #41AF77
square
#4142AF #AF4179 #AFAE41 #41AF77
split-complementary
#4142AF #AF7741 #79AF41
monochromatic
#202056 #303182 #4142AF #6768C6 #9394D7

Accessibility & contrast

On white

8.01
#4142AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4142AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142AF
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142AF#FFFFFF#000000##FFFFFF
##4142AF1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4142af;
/* rgb */ color: rgb(65, 66, 175);
/* oklch */ color: oklch(44.7% 0.169 276.7);
Tailwind
colors: {
  custom: {
    50: '#8276c8',
    500: '#4142af',
    950: '#000000',
  },
}
SCSS
$custom: #4142af;
$custom-light: #8276c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4142af",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 239.455,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44655,
    "c": 0.16932,
    "h": 276.7
  },
  "luminance": 0.08115
}

Semantic roles & 50–950 ramp

primary
#4142AF
secondary
#C2C289
accent
#D452D5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4142AF

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

Preview Lab → · Contrast checker → · Palette generator →

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