#4034C9#4034C9

#4034C9 is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.8% C 0.218 H 276.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#4034C9
RGBrgb(64, 52, 201)
HSLhsl(245, 59%, 50%)
HSVhsv(245, 74%, 79%)
CMYKcmyk(68.2%, 74.1%, 0%, 21.2%)
CIE-LABlab(33.48, 50.03, -74.94)
CIE-LCHlch(33.48, 90.10, 303.73°)
OKLaboklab(44.82% 0.0249 -0.2166)
OKLCHoklch(44.82% 0.218 276.6)
XYZxyz(13.8815, 7.7618, 56.0136)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034C9 #BDC934
analogous
#3473C9 #4034C9 #8A34C9
triadic
#4034C9 #C94034 #34C940
tetradic
#4034C9 #C93473 #BDC934 #34C98A
square
#4034C9 #C93473 #BDC934 #34C98A
split-complementary
#4034C9 #C98A34 #73C934
monochromatic
#211B68 #312798 #4034C9 #6D63D7 #9A94E3

Accessibility & contrast

On white

8.23
#4034C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4034C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034C9
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034C9#FFFFFF#000000##FFFFFF
##4034C91.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#0048C6
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4034c9;
/* rgb */ color: rgb(64, 52, 201);
/* oklch */ color: oklch(44.8% 0.218 276.6);
Tailwind
colors: {
  custom: {
    50: '#886edb',
    500: '#4034c9',
    950: '#000000',
  },
}
SCSS
$custom: #4034c9;
$custom-light: #886edb;
$custom-dark: #000000;
JSON
{
  "hex": "#4034c9",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 201
  },
  "hsl": {
    "h": 244.832,
    "s": 58.893,
    "l": 49.608
  },
  "oklch": {
    "l": 0.44822,
    "c": 0.21799,
    "h": 276.6
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#4034C9
secondary
#C9CE8A
accent
#E246D5
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4034C9

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

Preview Lab → · Contrast checker → · Palette generator →

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