#4041C8#4041C8

#4041C8 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.203 H 274.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#4041C8
RGBrgb(64, 65, 200)
HSLhsl(240, 55%, 52%)
HSVhsv(240, 68%, 78%)
CMYKcmyk(68%, 67.5%, 0%, 21.6%)
CIE-LABlab(36.06, 42.32, -70.12)
CIE-LCHlch(36.06, 81.90, 301.11°)
OKLaboklab(46.64% 0.0171 -0.2025)
OKLCHoklch(46.64% 0.203 274.8)
XYZxyz(14.4265, 9.0394, 55.6169)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041C8 #C8C740
analogous
#4085C8 #4041C8 #8340C8
triadic
#4041C8 #C84041 #41C840
tetradic
#4041C8 #C84085 #C8C740 #40C883
square
#4041C8 #C84085 #C8C740 #40C883
split-complementary
#4041C8 #C88340 #85C840
monochromatic
#20206E #2D2E9D #4041C8 #7070D6 #9FA0E3

Accessibility & contrast

On white

7.48
#4041C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4041C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041C8
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041C8#FFFFFF#000000##FFFFFF
##4041C81.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4041c8;
/* rgb */ color: rgb(64, 65, 200);
/* oklch */ color: oklch(46.6% 0.203 274.8);
Tailwind
colors: {
  custom: {
    50: '#8676da',
    500: '#4041c8',
    950: '#000000',
  },
}
SCSS
$custom: #4041c8;
$custom-light: #8676da;
$custom-dark: #000000;
JSON
{
  "hex": "#4041c8",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 239.559,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.46638,
    "c": 0.20324,
    "h": 274.8
  },
  "luminance": 0.09041
}

Semantic roles & 50–950 ramp

primary
#4041C8
secondary
#D0CF94
accent
#DE49DF
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4041C8

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

Preview Lab → · Contrast checker → · Palette generator →

#4041C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva