#4043AF#4043AF

#4043AF is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.8% C 0.168 H 276.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#4043AF
RGBrgb(64, 67, 175)
HSLhsl(238, 46%, 47%)
HSVhsv(238, 63%, 69%)
CMYKcmyk(63.4%, 61.7%, 0%, 31.4%)
CIE-LABlab(34.39, 32.62, -58.13)
CIE-LCHlch(34.39, 66.66, 299.30°)
OKLaboklab(44.76% 0.0176 -0.1674)
OKLCHoklch(44.76% 0.168 276)
XYZxyz(11.8568, 8.1985, 41.5068)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4043AF #AFAC40
analogous
#407BAF #4043AF #7440AF
triadic
#4043AF #AF4043 #43AF40
tetradic
#4043AF #AF407B #AFAC40 #40AF74
square
#4043AF #AF407B #AFAC40 #40AF74
split-complementary
#4043AF #AF7440 #7BAF40
monochromatic
#1F2155 #303282 #4043AF #6568C7 #9294D7

Accessibility & contrast

On white

7.96
#4043AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4043AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4043AF
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4043AF#FFFFFF#000000##FFFFFF
##4043AF1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4043af;
/* rgb */ color: rgb(64, 67, 175);
/* oklch */ color: oklch(44.8% 0.168 276.0);
Tailwind
colors: {
  custom: {
    50: '#8177c8',
    500: '#4043af',
    950: '#000000',
  },
}
SCSS
$custom: #4043af;
$custom-light: #8177c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4043af",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 175
  },
  "hsl": {
    "h": 238.378,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44764,
    "c": 0.16829,
    "h": 276
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#4043AF
secondary
#C3C188
accent
#D352D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4043AF

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

Preview Lab → · Contrast checker → · Palette generator →

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