#4034C2#4034C2

#4034C2 is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 44.1% C 0.210 H 277.2°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#4034C2
RGBrgb(64, 52, 194)
HSLhsl(245, 58%, 48%)
HSVhsv(245, 73%, 76%)
CMYKcmyk(67%, 73.2%, 0%, 23.9%)
CIE-LABlab(32.79, 47.83, -71.99)
CIE-LCHlch(32.79, 86.43, 303.60°)
OKLaboklab(44.12% 0.0263 -0.208)
OKLCHoklch(44.12% 0.21 277.2)
XYZxyz(13.0768, 7.4399, 51.7754)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034C2 #B6C234
analogous
#346FC2 #4034C2 #8734C2
triadic
#4034C2 #C24034 #34C240
tetradic
#4034C2 #C2346F #B6C234 #34C287
square
#4034C2 #C2346F #B6C234 #34C287
split-complementary
#4034C2 #C28734 #6FC234
monochromatic
#201A61 #302792 #4034C2 #695FD4 #968FE1

Accessibility & contrast

On white

8.44
#4034C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4034C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034C2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034C2#FFFFFF#000000##FFFFFF
##4034C21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#0047BF
Tritanopia (blue-blind)
#005C78
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4034c2;
/* rgb */ color: rgb(64, 52, 194);
/* oklch */ color: oklch(44.1% 0.210 277.2);
Tailwind
colors: {
  custom: {
    50: '#866ed6',
    500: '#4034c2',
    950: '#000000',
  },
}
SCSS
$custom: #4034c2;
$custom-light: #866ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#4034c2",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 245.07,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44122,
    "c": 0.20962,
    "h": 277.2
  },
  "luminance": 0.07441
}

Semantic roles & 50–950 ramp

primary
#4034C2
secondary
#C6CC86
accent
#E147D4
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4034C2

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

Preview Lab → · Contrast checker → · Palette generator →

#4034C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva