#4041AF#4041AF

#4041AF is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.4% C 0.171 H 276.5°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#4041AF
RGBrgb(64, 65, 175)
HSLhsl(239, 46%, 47%)
HSVhsv(239, 63%, 69%)
CMYKcmyk(63.4%, 62.9%, 0%, 31.4%)
CIE-LABlab(33.91, 33.88, -58.92)
CIE-LCHlch(33.91, 67.97, 299.90°)
OKLaboklab(44.41% 0.0193 -0.1697)
OKLCHoklch(44.41% 0.171 276.5)
XYZxyz(11.7400, 7.9648, 41.4678)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041AF #AFAE40
analogous
#4079AF #4041AF #7640AF
triadic
#4041AF #AF4041 #41AF40
tetradic
#4041AF #AF4079 #AFAE40 #40AF76
square
#4041AF #AF4079 #AFAE40 #40AF76
split-complementary
#4041AF #AF7640 #79AF40
monochromatic
#1F2055 #303082 #4041AF #6566C7 #9293D7

Accessibility & contrast

On white

8.10
#4041AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4041AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041AF
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041AF#FFFFFF#000000##FFFFFF
##4041AF1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4041af;
/* rgb */ color: rgb(64, 65, 175);
/* oklch */ color: oklch(44.4% 0.171 276.5);
Tailwind
colors: {
  custom: {
    50: '#8176c8',
    500: '#4041af',
    950: '#000000',
  },
}
SCSS
$custom: #4041af;
$custom-light: #8176c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4041af",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 239.459,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44409,
    "c": 0.1708,
    "h": 276.5
  },
  "luminance": 0.07966
}

Semantic roles & 50–950 ramp

primary
#4041AF
secondary
#C3C288
accent
#D552D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4041AF

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

Preview Lab → · Contrast checker → · Palette generator →

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