#4041B2#4041B2

#4041B2 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.175 H 276.3°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#4041B2
RGBrgb(64, 65, 178)
HSLhsl(239, 47%, 47%)
HSVhsv(239, 64%, 70%)
CMYKcmyk(64%, 63.5%, 0%, 30.2%)
CIE-LABlab(34.16, 34.90, -60.30)
CIE-LCHlch(34.16, 69.67, 300.06°)
OKLaboklab(44.67% 0.0192 -0.1737)
OKLCHoklch(44.67% 0.175 276.3)
XYZxyz(12.0379, 8.0839, 43.0368)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041B2 #B2B140
analogous
#407AB2 #4041B2 #7840B2
triadic
#4041B2 #B24041 #41B240
tetradic
#4041B2 #B2407A #B2B140 #40B278
square
#4041B2 #B2407A #B2B140 #40B278
split-complementary
#4041B2 #B27840 #7AB240
monochromatic
#202058 #303185 #4041B2 #6768C8 #9495D8

Accessibility & contrast

On white

8.02
#4041B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4041B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041B2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041B2#FFFFFF#000000##FFFFFF
##4041B21.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4041b2;
/* rgb */ color: rgb(64, 65, 178);
/* oklch */ color: oklch(44.7% 0.175 276.3);
Tailwind
colors: {
  custom: {
    50: '#8276ca',
    500: '#4041b2',
    950: '#000000',
  },
}
SCSS
$custom: #4041b2;
$custom-light: #8276ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4041b2",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 239.474,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44667,
    "c": 0.1748,
    "h": 276.3
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#4041B2
secondary
#C4C38A
accent
#D651D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4041B2

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

Preview Lab → · Contrast checker → · Palette generator →

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