#4043B5#4043B5

#4043B5 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.176 H 275.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#4043B5
RGBrgb(64, 67, 181)
HSLhsl(238, 48%, 48%)
HSVhsv(238, 65%, 71%)
CMYKcmyk(64.6%, 63%, 0%, 29%)
CIE-LABlab(34.88, 34.68, -60.89)
CIE-LCHlch(34.88, 70.07, 299.66°)
OKLaboklab(45.28% 0.0173 -0.1755)
OKLCHoklch(45.28% 0.176 275.6)
XYZxyz(12.4593, 8.4394, 44.6795)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4043B5 #B5B240
analogous
#407DB5 #4043B5 #7840B5
triadic
#4043B5 #B54043 #43B540
tetradic
#4043B5 #B5407D #B5B240 #40B578
square
#4043B5 #B5407D #B5B240 #40B578
split-complementary
#4043B5 #B57840 #7DB540
monochromatic
#20225B #303288 #4043B5 #686BCA #9697DA

Accessibility & contrast

On white

7.81
#4043B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4043B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4043B5
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4043B5#FFFFFF#000000##FFFFFF
##4043B51.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4043b5;
/* rgb */ color: rgb(64, 67, 181);
/* oklch */ color: oklch(45.3% 0.176 275.6);
Tailwind
colors: {
  custom: {
    50: '#8277cc',
    500: '#4043b5',
    950: '#000000',
  },
}
SCSS
$custom: #4043b5;
$custom-light: #8277cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4043b5",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 181
  },
  "hsl": {
    "h": 238.462,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45275,
    "c": 0.17633,
    "h": 275.6
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#4043B5
secondary
#C5C48B
accent
#D450D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4043B5

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

Preview Lab → · Contrast checker → · Palette generator →

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