#4043B2#4043B2

#4043B2 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.0% C 0.172 H 275.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#4043B2
RGBrgb(64, 67, 178)
HSLhsl(238, 47%, 47%)
HSVhsv(238, 64%, 70%)
CMYKcmyk(64%, 62.4%, 0%, 30.2%)
CIE-LABlab(34.64, 33.65, -59.52)
CIE-LCHlch(34.64, 68.37, 299.48°)
OKLaboklab(45.02% 0.0175 -0.1714)
OKLCHoklch(45.02% 0.172 275.8)
XYZxyz(12.1548, 8.3176, 43.0758)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4043B2 #B2AF40
analogous
#407CB2 #4043B2 #7640B2
triadic
#4043B2 #B24043 #43B240
tetradic
#4043B2 #B2407C #B2AF40 #40B276
square
#4043B2 #B2407C #B2AF40 #40B276
split-complementary
#4043B2 #B27640 #7CB240
monochromatic
#202158 #303285 #4043B2 #6769C8 #9496D8

Accessibility & contrast

On white

7.88
#4043B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4043B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4043B2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4043B2#FFFFFF#000000##FFFFFF
##4043B21.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4043b2;
/* rgb */ color: rgb(64, 67, 178);
/* oklch */ color: oklch(45.0% 0.172 275.8);
Tailwind
colors: {
  custom: {
    50: '#8277ca',
    500: '#4043b2',
    950: '#000000',
  },
}
SCSS
$custom: #4043b2;
$custom-light: #8277ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4043b2",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 178
  },
  "hsl": {
    "h": 238.421,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45018,
    "c": 0.17233,
    "h": 275.8
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#4043B2
secondary
#C4C28A
accent
#D351D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4043B2

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

Preview Lab → · Contrast checker → · Palette generator →

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