#4033A2#4033A2

#4033A2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.9% C 0.171 H 281.0°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4033A2
RGBrgb(64, 51, 162)
HSLhsl(247, 52%, 42%)
HSVhsv(247, 69%, 64%)
CMYKcmyk(60.5%, 68.5%, 0%, 36.5%)
CIE-LABlab(29.58, 38.15, -58.20)
CIE-LCHlch(29.58, 69.59, 303.24°)
OKLaboklab(40.92% 0.0327 -0.1676)
OKLCHoklch(40.92% 0.171 281)
XYZxyz(9.8177, 6.0656, 34.8288)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4033A2 #95A233
analogous
#335EA2 #4033A2 #7833A2
triadic
#4033A2 #A24033 #33A240
tetradic
#4033A2 #A2335E #95A233 #33A278
square
#4033A2 #A2335E #95A233 #33A278
split-complementary
#4033A2 #A27833 #5EA233
monochromatic
#1B1645 #2E2473 #4033A2 #5A4CC7 #857AD5

Accessibility & contrast

On white

9.49
#4033A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4033A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4033A2
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4033A2#FFFFFF#000000##FFFFFF
##4033A21.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4033a2;
/* rgb */ color: rgb(64, 51, 162);
/* oklch */ color: oklch(40.9% 0.171 281.0);
Tailwind
colors: {
  custom: {
    50: '#806cbe',
    500: '#4033a2',
    950: '#000000',
  },
}
SCSS
$custom: #4033a2;
$custom-light: #806cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4033a2",
  "rgb": {
    "r": 64,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 247.027,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40915,
    "c": 0.17077,
    "h": 281
  },
  "luminance": 0.06066
}

Semantic roles & 50–950 ramp

primary
#4033A2
secondary
#B5BE73
accent
#DC4CCB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4033A2

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

Preview Lab → · Contrast checker → · Palette generator →

#4033A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva